Page 1 of 1

yum upgrade vs yum update

Posted: Wed Oct 22, 2014 9:24 am
by faris
In another topic, there has been some discussion about using yum upgrade as opposed to yum update and how they do different things.

But do they really do something different these days?

I had done some research a while ago and was of the impression that "yum upgrade" was the same as "yum --obsoletes update".
Further, I thought that having "obsoletes=1" in yum.conf, which has been the case for most modern Centos versions for a while, made "--obsoletes" the default for a "yum update".

And so I thought that, as long as you have "obsoletes=1" in yum.conf then yum upgrade and yum update did the same thing.

But the post I mention has got me thinking I may be wrong....

Re: yum upgrade vs yum update

Posted: Wed Oct 22, 2014 3:21 pm
by scott
Meh, the yum.conf or whatever settings arent going to be super consistent. Better to assume the worst and save yourself a lot of time.

Re: yum upgrade vs yum update

Posted: Thu Oct 23, 2014 6:37 am
by faris
Oh, so its one of those things. You'd think something as important as software upgrades would not be even slightly unpredictable. :-)

Re: yum upgrade vs yum update

Posted: Mon Oct 27, 2014 6:55 am
by prupert
obsoletes=1 has been the default in CentOS for a while. So, yum update == yum upgrade on a CentOS system.

Totally predictable updates imho! :)

Re: yum upgrade vs yum update

Posted: Mon Oct 27, 2014 8:22 am
by scott
So you're saying I can bill you for that when it isnt right?

Re: yum upgrade vs yum update

Posted: Tue Oct 28, 2014 5:15 am
by prupert
scott wrote:So you're saying I can bill you for that when it isnt right?
Sure. ;-)

"obsoletes=1" is the **default** in /etc/yum.conf. Thus, yum update/upgrade are exactly the same, unless you explicitly told yum otherwise by modifying the yum.conf.

Re: yum upgrade vs yum update

Posted: Tue Oct 28, 2014 4:02 pm
by scott
Deal!