
Determining Whether RPM Files are Already Installed
Issue 5 June 2005 17
Determining Whether RPM Files are Already Installed
To determine whether RPM files are already installed, perform the following steps:
1. In the terminal emulation window, at the command prompt, type rpm –q <name of RPM
package>.
2. To search for RPM files using a partial RPM package name, at the command prompt type:
rpm –qa | grep <partial name>
For example, rpm –qa | grep vnc to determine if any RPM packages beginning with “vnc”
have been installed.
Installing RPM Files
To install RPM files, perform the following steps:
1. Insert the Red Hat installation CD in the CD-ROM drive.
2. Open a terminal emulation window.
3. Type cd /mnt/cdrom/RedHat/RPMS.
Note:
Note: If Linux responds “directory does not exist,” you may have to manually mount the
CD-ROM drive. To do so, perform the following steps:
a. Type mount /dev/cdrom.
b. Type cd /dev/cdrom/RedHat/RPMS.
4. At the command prompt, type rpm –iv <name of RPM package>.
Komentáře k této Příručce