Redhat: RPM

From Define Wiki
Revision as of 15:43, 18 August 2013 by Michael (talk | contribs) (→‎= Install a Package)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Managing Packages using RPM

The RPM command can be used to manage individual packages.

Install a Package

The most important use for the RPM command is to install a package. This is done using the -i flag.

rm -i <rpm file>

It will throw and error is there are dependencies however it cannot install them. Dependencies can lead to dependency hell, when there are so many dependencies, and they themselves have dependencies that it can become impossible to manage. This is where yum is useful.

Upgrade a Pacakage

rm -U <rpm file>

Uninstall a Pacakage

rm -e <rpm file>