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 /etc/yum.conf:
It must be a better approach. Every suggestion will be welcome.
The yum man's page description of them and the
--obsoletes flag is a bit cryptic for me. So let me reword what do I understand from it: Do I have to understand that
yum update wont install a new kernel because it would mean marking as obsolete the current one? hence do I have to assume that
yum upgrade does the same or almost the same than
What I like best form 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 and 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?