不以物喜不以己悲

忘了?常回家看看

yum 命令 update 与 upgrade 的区别


man yum ,以及测试(centos 6.4版本)后,我认为,update 与 upgrade 并没有实质性的区别。网上说:

yum -y update
升级所有包,改变软件设置和系统设置,系统版本内核都升级
yum -y upgrade
升级所有包,不改变软件设置和系统设置,系统版本升级,内核不改变

这是错误的! 


       update If run without any packages, update will update every currently installed package.  If one or more packages or package globs are specified, Yum will only update the  listed
              packages.  While updating packages, yum will ensure that all dependencies are satisfied. (See Specifying package names for more information) If the packages or globs speci-
              fied match to packages which are not currently installed then update will not install them. update operates on groups, files, provides and filelists just like the "install"
              command.

              If  the  main  obsoletes configure option is true (default) or the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it better
              for distro-version changes, for example: upgrading from somelinux 8.0 to somelinux 9.

              Note that "update" works on installed packages first, and only if there are no matches does it look for available packages. The difference is most noticeable  when  you  do
              "update foo-1-2" which will act exactly as "update foo" if foo-1-2 is installed. You can use the "update-to" if you’d prefer that nothing happen in the above case.

       upgrade
              Is the same as the update command with the --obsoletes flag set. See update for more details.


阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/reyleon/article/details/17115063
个人分类: linux
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

yum 命令 update 与 upgrade 的区别

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭