码迷,mamicode.com
首页 > 其他好文 > 详细

manage software

时间:2016-07-03 15:37:27      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

1. yumdownloader - download RPM packages from Yum repositories

 yumdownloader sg3_utils

2. rpm -Uvh --replacepkgs tree-1.6.0-10.el7.x86_64.rpm

This option is helpful if files installed from the package were deleted or if you want the original
configuration files to be installed.

3. rpm -Uvh --oldpackage older_package.rpm

If you attempt an upgrade to an older version of a package (that is, if a newer version of the package
is already installed), RPM informs you that a newer version is already installed. To force RPM to
perform the downgrade, use the --oldpackage option

4. rpm -e package

rpm -e --nodeps package

   

You can encounter dependency errors when uninstalling a package if another installed package
depends on the one you are trying to remove.

Although you can force rpm to uninstall a package that has unresolved dependencies (using
the --nodeps option), this is not recommended. Removing packages with --nodeps can
cause applications from the packages whose dependencies are removed to misbehave or
terminate unexpectedly. It can also cause serious package-management problems or system
failure. For these reasons, heed the warnings about failed dependencies.

manage software

标签:

原文地址:http://www.cnblogs.com/bajunma123/p/5637974.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!