Yum In RHEL 5

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:


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 0 comments... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum