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

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

posted @ 2018-04-29 20:00  lvmxh  阅读(140)  评论(0编辑  收藏  举报