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

yum all installed dependent packages while removing a package in centos 7?

时间:2018-04-29 20:31:59      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:ons   and   nbsp   removing   tor   pen   hang   question   packages   

how to remove all installed dependent packages while removing a package in centos 7?

# yum history

# yum history undo 14
yum remove package_name will remove only that package and all their dependencies.

yum autoremove will remove the unused dependencies

 To remove a package with it‘s dependencies , you need to install yum plugin called: remove-with-leaves

To install it type:

yum install yum-plugin-remove-with-leaves

To remove package_name type:

yum remove package_name --remove-leaves

yum search - package version

yum all installed dependent packages while removing a package in centos 7?

标签:ons   and   nbsp   removing   tor   pen   hang   question   packages   

原文地址:https://www.cnblogs.com/shaohef/p/8971754.html

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