Q. How can I know what packages are available for binary update under Fedora / RHEL / CentOS Linux version 5 server? How do I list all outdated packages? How do I apply update / patches to system?

A. CentOS / RHEL / Fedora Linux version 5 and above supports yum command (yum is an interactive, automated update program which can be used for maintaining systems using rpm). It can list all packages which could be updated from a shell prompt.

First, Login as the root user

Type the following command at shell prompt to list all outdated packages:
# yum list updates

Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Setting up repositories
rhel-x86_64-server-vt-5   100% |=========================| 1.2 kB    00:00     
rhel-x86_64-server-5      100% |=========================| 1.2 kB    00:00     
Reading repository metadata in from local files
Updated Packages
tzdata.noarch                            2007k-1.el5            rhel-x86_64-serv

You can also try to locate specific packages:
# yum list updates package-name
# yum list updates "*apache*"
# yum list updates "regex"

To updated packages, enter:
# yum update

A note about RHEL version

RHEL version 4.0 and below uses up2date command. It has -l option to show you what package updates are available for download and installing the same.
# up2date -l
To check for and update all RPM(S), enter:
# up2date -u

See also:

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

🐧 2 comments so far... 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
2 comments… add one
  • Nilesh Jan 5, 2008 @ 12:19

    Common man! Every Linux user has to know this! Anyways its a nice tutorial for n00bs.

  • blink4blog Jan 6, 2008 @ 7:17

    Another way for SuSE 10.x user is to configure Online Update applet on taskbar:

    1. Right click Auto-Update applet, select “Configure Applet”

    2. Check checkbox named “Show available upgrades when backend provides them (for experts only)”

    This will allow Online-Update service to look for installable upgrades packages.

    I uses the same method to resolve conflict when upgrading Amarok iterative updates in YaST.


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