Chapter 1. Installing the software
# cd RedHat/RPMS
# ls
4Suite-0.11.1-10.i386.rpm
a2ps-4.13b-24.i386.rpm
abiword-1.0.2-6.i386.rpm
...
zlib-1.1.4-4.i386.rpm
zlib-devel-1.1.4-4.i386.rpm
zsh-4.0.4-8.i386.rpm
Figure 1-4. Navigating to the package repository
Each of these .rpm files contains a Red Hat package. We are now in a position to in-
stall the ones we want. Each has a file name based on the package name. We will in-
stall the software with the rpm command’s --install option. These filenames tend
to be quite long. Tab-completion can save you a lot of typing. Type the beginning of
a filename and press Tab. The shell will complete the filename as far as it can.
# pwd
/mnt/redhat/9/en/os/i386/RedHat/RPMS
# rpm --install httpd-2.0.40-8.i386.rpm
# rpm --install webalizer-2.01_10-9.i386.rpm
Figure 1-5. Installing the packages
The two filenames could have been given as a list on a single rpm command line.
We have been slightly unfair here. We have installed the version of the web server
that comes with Red Hat Linux version 9. However, there may have been releases
since then that we should upgrade to. You may recall an updates directory in
/mnt/redhat. This contains updates to software that are released after the initial
release.
We will use the rpm command’s --freshen option to update our version of the core
httpd package.
# cd /mnt/redhat/updates/9/en/os/i386
# ls httpd-* logrotate-* webalizer-*
ls: logrotate-*: No such file or directory
ls: webalizer-*: No such file or directory
httpd-2.0.40-11.i386.rpm httpd-manual-2.0.40-11.i386.rpm
httpd-devel-2.0.40-11.i386.rpm
# rpm --freshen httpd-2.0.40-11.i386.rpm
Figure 1-6. Looking for updated packages
Finally we will unmount the NFS file server. To do this we have to leave any of the
directories we have mounted from it as we can’t whip the carpet out from under our
own feet.
# pwd
/mnt/redhat/9/en/os/i386/RedHat/RPMS
# cd
# pwd
/root
# umount /mnt/redhat
Figure 1-7. Disconnecting from the file server
4
Comentarios a estos manuales