You are on page 1of 1

Linux Workshop

Lab 13 Install and manage applications


Requirements Quick Reference Objectives to learn
➢ Any Linux distribution supporting rpm or debian Mounting
vi /etc/fstab #Mounting at boot time
package manager. //srv/share /mnt/dir smbfs defaults,username=nobody 0 0
➢ Available installation sources. 172.28.0.111:/data /mnt/data nfs soft,bg,intr 00
mount -a #Mount all stuff from /etc/fstab
mount #Show mounts (equals to: cat /etc/mtab)
smbclient -L server -U user #List smb shares for User. Mount smb:
mount -o username=beavis //srv/share /mntdir
mount server:/exportdir /mntdir #Mount nfs share
mount /dev/cdrom /media/cdrom #Not necessary with subfs
umount /dev/cdrom #Not necessary with subfs, just eject CD
mount /dev/hda1 /mntdir #Mount first partition in /mntdir
mount -o loop file.iso /dir #Open .iso file directly in /dir
Install/manage an application with rpm
rpm -qa #Display all applications (packages, rpm's)
rpm -ivh file.rpm #Install file.rpm
To Do rpm -Fvh file.rpm #Freshen (update) an rpm
1. If necessary, setup the proxy server for the web rpm -Uvh file.rpm #Install or update an rpm
browser. rpm -qf file #Show owner package of file
rpm -qi rpm-name #Show information owned by package
2. Make a mount to the installation source.
rpm -ql rpm-name #List files owned by package
3. Make sure the mount survives a reboot. rpm -qpl file.rpm #List files owned by package

4. If not yet available: Install the Developer Tools. rpm -V rpm-name #Verify package

This will make the gcc compiler available. rpm -e rpm-name #Erase package
rpm --import RPM-GPG-KEY #Key is on CD. Also run:
5. Do the following commands: gpg --import RPM-GPG-KEY #Now you can check integrity:
rpm -qa rpm --checksig file.rpm #Verify rpm authenticity. Same as -K
rpm -Uvh rpmdb-redhat<tab> #Make auto solve dependencies possible:
rpm -qf /etc/inittab rpm -ivh --aid file.rpm #Requires RPMS CD's in current directory
rpm -qi aaa_base.... (or another ownername) Install from source #Not supported with support
#Download the source (tarball), like file.tar.gz
6. On Red Hat in the rpm installation source
tar -zxvf file.tar.gz #Unpack the tarball in current directory
directory you can make sure that dependencies
cd ...... #Change to the new source directory
are loaded automatically using the --aid option
./configure #Create the Makefiles (rules for compiler)
after the rpmdb-redhat package is installed.
make #Compile
Install this package.
make install #Put program into production environment
On SuSE you can use yast to install packages.
Dependencies are handled automatically.
Theory Modules
7. If time permits. Install one or more of the
LPIC 1 Certification Bible, isbn 0-7645-4772-0
following packages from the installation source or
p. 93 Ch. 3 Installing Software
from Internet: nmap, findutils-locate, mtr,
Downloadable manual(www.novell.com/documentation)
Netscape or getfirefox.com, OpenOffice.org, and
SUSE LINUX Enterprise Server – Install. and Admin.
e.g. videolan.org's vlc media player.
➢ p. 174-184 RPM – the Package Manager
These are installation examples of rpm's,
installers and compiling source code.
Note: Using installation methods other then rpm
or dpkg could break support contracts and could
create an unstable system.
Extra References
➢ www.tldp.org
➢ How to build an rpm:
www.rpm.org/RPM-HOWTO/build.html

© July 7, 2006, wiki.novell.com/index.php/Roberts_Quick_References, author of Foundations of Linux networking

You might also like