0

yum has three flags which are capable of 'modernizing' a package.

  • yum update – "may or may not" force the removal of obsolete packages.
  • yum upgrade – does not force the removal of obsolete packages
  • yum install – ?

I got the "may or may not" from this question:

In CentOS, what is the difference between yum update and yum upgrade?

What is the definitive behavior of "yum install" when I'm using it to bring software up to date?

  • You left out yum reinstall. – Thomas Dickey Nov 8 '17 at 23:30
0

By default, the install sub-command installs the latest version of a package that yum can find in its repository list iff (if any only if) any version of the package is not already installed, i.e. it does not update an existing installed package with a newer version of the package even if it finds a newer version in its repos.

  • I believe this is false, at least on my aws ec2 instance I'm able to run yum install to update software. Are my settings not default? AWS instances definitely are not totally clean. – Lee Gildemeester Nov 9 '17 at 0:43
  • @LeeGildemeester. Could be. I do not have a AWS EC2 instance to test on at present. However yum install by itself should return an error and do nothing. Please provide an actual working example of using yum install to update a package. – fpmurphy Nov 9 '17 at 1:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.