How to check updates 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 CentOS 7.
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.
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.
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
# 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
So that is How we can check yum updates in centOS7 using the yum command.
You can use yum check-update command to check software updates in centOS7.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?