Linux | yum update与upgrade的区别

  • 内容
  • 相关

首先yum updateyum upgrade的功能是一样的,都是将需要更新的package更新至软件源中的最新版。

唯一不同是yum upgrade删除旧版本package,而yum update会保留。注意!如果你的某些软件依赖旧版本的package,请使用yum update

附赠关于yum updateupgrade的区别英文最全解释:

yum update originally just did upgrades of packages to new versions.If, for example, foo-awesome obsoleted foo, yum update wouldn't offerto upgrade from foo to foo-awesome. Adding the --obsoletes flag to yumupdate made it do the extra checks to also offer that upgrade path. yum upgrade was added as (essentially) an alias for yum --obsoletesupdate. Since this is the behavior that almost everyone wants all ofthe time, the configuration option obsoletes=1 was added to thedefault /etc/yum.conf, making yum update and yum upgrade equivalent onany recent, stock, Fedora/RHEL/CentOS/etc.If you want to avoid kernel updates when you're running yum update,you can just do yum --exclude=kernel* update. If you want automaticupdates on, but you want to avoid automatic kernel upgrades, thenadding the exclude to yum.conf is probably the right answer.There probably isn't a Right Answer for your question. RHEL andRHEL-based distributions don't have the same philosophy as the Debiandevelopers when it comes to updates, so the tools don't encourage thesame sorts of behavior.

 您阅读这篇文章共花了:

上一篇:Linux | 正则表达式贪婪与非贪婪模式

下一篇:Linux | chmod权限设置与linux-facl权限控制-移除-复制

本文标签:    

版权声明:本文依据CC-BY-NC-SA 3.0协议发布,若无特殊注明,本文皆为《fishyoung》原创,转载请保留文章出处。

本文链接:Linux | yum update与upgrade的区别 - http://www.fishyoung.com/post-270.html

发表评论

用QQ号可快速填写资料,资料不会被公开。 必填项已用 * 标注

评论时请勿使用恶意语言,如恶意使用将禁封IP段,请知晓~