Skip to content

yum update upgrade difference

lanzhiwang edited this page May 17, 2019 · 1 revision

yum update upgrade difference

obsoletes 选项

--obsoletes

This option only has affect for an update, it enables yum´s obsoletes processing logic. 此选项仅对更新有影响,它启用yum的过时处理逻辑。For more information see the update command above. Configuration Option: obsoletes

update

update

  • If run without any packages, update will update every currently installed package. 如果在没有任何包的情况下运行,update将更新每个当前安装的包。

  • If one or more packages or package globs are specified, Yum will only update the listed packages. 如果指定了一个或多个包或包,则Yum将仅更新列出的包。

  • While updating packages, yum will ensure that all dependencies are satisfied. 在更新包时,yum将确保满足所有依赖关系。

  • (See Specifying package names for more information) If the packages or globs specified match to packages which are not currently installed then update will not install them. (有关详细信息,请参阅指定程序包名称)如果指定的程序包或globs与当前未安装的程序包匹配,则update将不会安装它们。

  • update operates on groups, files, provides and filelists just like the "install" command. update就像“install”命令一样对组,文件,提供和文件列表进行操作。

  • 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. 请注意,“update”首先适用于已安装的软件包,并且只有在没有匹配项时才会查找可用软件包。

  • 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. 当你执行“更新foo-1-2”时,差异最明显,如果安装了foo-1-2,它将与“update foo”完全相同。 如果您不希望在上述情况下发生任何事情,可以使用“更新到”。

upgrade

upgrade

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

Clone this wiki locally