Difference between revisions of "Redhat: RPM"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== 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...")
 
 
Line 3: Line 3:
 
The RPM command can be used to manage individual packages.
 
The RPM command can be used to manage individual packages.
  
== Install a Package =
+
== Install a Package ==
  
 
The most important use for the RPM command is to install a package.  This is done using the -i flag.
 
The most important use for the RPM command is to install a package.  This is done using the -i flag.

Latest revision as of 15:43, 18 August 2013

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>