e Learning

How to check update in CentOS with yum command

In this tutorial we are going to learn how to check for package updates in CentOS Linux using the yum check-update command.

The yum check-update command use to search for the software updates in Redhat Based Linux Distributions.

To check updates on CentOS 7, execute yum check-update on the CentOS Terminal.

yum check-update

This will list all available updates on your CentOS Linux System.

We can specify the package name to check updates on a specific package.

yum check-update <package-name>

If updates are available, you can use yum update command to update packages.

To update all packages, execute.

yum update

Or specify the package you want to update.

yum update <package-name>

Example – List All available Update in CentOS

yum check-update

The yum command will list all available updates for your CentOS 7 Computer.

yum check update - How to check update in CentOS with yum command

Example – Check Updates for Firefox

yum check-update firefox

This will check whether new updates for Firefox web browser available or not in your CentOS Desktop.

Yum Check Updates for Firefox in CentOS

Example – Check kernel Updates with yum

yum check-update kernel

This will check whether kernel updates are available for your CentOS Linux system.

Example – Filter yum check update with grep command

We can use the grep command to check updates by keyword by redirecting yum check-update result to the grep command.

yum check-update | grep -i kernel

This will list all updates for the packages that match the keyword kernel.

Filter yum check update with grep command

yum check-update | grep -i samba

This will filter the yum check update result to list package only match the word samba in CentOS 7.

Check Updates for Multiple packages

In CentOS, The yum check-update command can search updates for multiple packages at once.

Example

yum check-update samba-client samba-common

This will search updates for the both samba-client and samba-common packages.

Check Updates for Multiple packages with yum command

So that is How we can check yum updates in CentOS Linux using the yum command. You can use yum check-update command to check software updates in any Redhat Based Linux Distribution (red hat enterprise Linux, CentOS, Fedora, Oracle Linux and etc.. ).