I'm a *.deb guy and I feel quite uncomfortable while managing rpms.
I'm used to run
apt-get upgrade in my debian based servers for "normal" upgrades and
apt-get dist-upgrade for allowing kernel upgrades or allowing new major package versions upgrades.
In the CentOS servers I admin, I would like to have a similar feature, however man yum doesn't seem to offer such behaviour. And the differences between
yum update and
yum upgrade seems to be not what I'm looking for.
So far my best approach is to add and remove the following setting in
There must be a better approach. Every suggestion will be welcome.
The yum's man page description of them and the
--obsoletes flag is a bit cryptic for me. So let me reword what I understand from it: Do I have to understand that
yum update won't install a new kernel because it would mean marking as obsolete the current one? Can I assume that
yum upgrade does the same or almost the same than
What I like best from
apt-get upgrade is that it tells me which packages remain retained so I can act accordingly; either with
apt-get dist-upgrade or with explicit
apt-get install package.
So after thinking a bit my best approach at this moment will be: disable the obsoletes setting in yum.conf (as described by Steven Pritchard in his answer) and run at first
yum update. Once all the updates are installed, run a second
yum update --obsoletes to check which packages have been retained and act in function of its results.
Will that work?