Linux Mall - The Linux SuperStore!
Linux books, Linux CDs, Linux toys, you name it, they have it!

W W W . L I N U X D O T . O R G

Newbie's Linux Manual
RPM at the Terminal
] [ Download*] [ Previous] [ Next] Home] [ Contents] [ Download*] [ Previous] [ Next] Homepage| The Last 5 Days| The Daily Linux News| The Linux Bits| Newbie's Linux Manual
The Best Linux Sites| Linux Book Reviews| A Windows Vendetta?
Diary of a Linux Newbie| Diary of an Open Source Newbie
The Linux Forum| Just For Fun Amazon - The World's Biggest Bookstore!
4.7 million books, CDs, videos, and DVDs available to buy! Webmaster| Manual's Copyright Terms
[
* In Linux enter: unzip nlm.zip
RPM

RPM (Red Hat Package Manager) is both a filetype (*.rpm) and the application that installs RPMs. One popular piece of software for installing, upgrading, and uninstalling RPMs in X is 'Gnome RPM', but we'll be dealing with how to do it from the terminal.

RPM filenames are made up as follows:

name-version-release.architecture.rpm

...e.g.:

tree-1.2-6.i386.rpm

Installing An RPM
Enter:
rpm -ivh tree-1.2-6.i386.rpm

...(replacing tree-1.2-6.i386.rpm with filename.)

i = install
v = verbose -- to tell you if install was successful (optional)
h = display hash marks to indicate progress (optional)

Note:
If the RPM is on your Red Hat CD, enter:

mount /mnt/cdrom
cd /mnt/cdrom/RedHat/RPMS
ls | less
(to find filename of RPM (q to quit))
...then rpm -ivh filename to install.

Upgrading An RPM
Enter:

rpm -Uvh filename

Note:

You can actually install a package by 'upgrading' it, even if there's no previous version to upgrade.

Uninstalling An RPM
Enter:

rpm -e name

Note:

When uninstalling you give the name (e.g. tree) and not the package name (e.g. tree-1.2-6.i386.rpm).

[
* In Linux enter: unzip nlm.zip
© MM Linuxdot.org |