Check for updates and install in Linux or CentOS

yum check-update shows me software versions that have been updated compared to what’s installed on my system. Following is the result I got when I execute the command in one of my servers

View post on imgur.com

As you can see, I got bunch of results with application name to the left side and its size to the right. To update a particular package, like ‘extras’, I can write yum update, and the name of the package yum update "mysql-connectors-community" Or I can install all of the suggested updates just by using the update command itself, with yum update

 

sometimes, you’d have a broken dependency running on your Linux, you’d want to figure that out and address that ASAP but for time being you can skip them and continue update process by

yum update --skip-broken

on high level, following would how error message looks like

Error: Package: systemd-libs-219-57.el7.i686 (base)
Requires: liblz4.so.1
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest

 

yum update vs yum upgarde

As suggested on serverfault yum update, will update existing package to new versions, if a package is obsolete it skips those packages. If you want yum update to work same as upgrade include --obsoletes option. Alternatively you can edit config file /etc/yum.conf and add option obsoletes = 1. If you want to skip kernel updates include exclude option and you code is yum --exclude=kernel* update. In centOS yum update & upgrade are same

Leave a comment