Yum In RHEL 5

by on January 9, 2009 · 0 comments· last updated at November 9, 2009

How do I use yum command under RHEL 5 to install and update packages?

The yum command can be run by hand from the shell prompt, called through one of the provided front-end tools, or configured to run automatically at specified intervals.

Update All Installed Packages

The following command displays a list of packages that need to be updated:
# yum check-update
And to install these updates, enter:
# yum update

Package Listing

To ist all available packages, run:
# yum list available
# yum list available "package-name"

To list all installed packages, run:
# yum list installed

Package Installation

To install the specified RPM or packages via RHN, enter:
# yum install packageName
# yum install httpd

Package Deletion

To remove the specified RPM(s) and it's dependents, enter:
# yum remove packageName
# yum remove httpd

Recommend readings:



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , ,

Previous Faq:

Next Faq: