Skip to content

Instantly share code, notes, and snippets.

@Wind4
Created April 28, 2015 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wind4/398efef7e4a87c5440c2 to your computer and use it in GitHub Desktop.
Save Wind4/398efef7e4a87c5440c2 to your computer and use it in GitHub Desktop.
安装yum-utils:
yum install yum-utils开始清理:
清理不被当前系统任何软件所使用的依赖包(应多运行几次):
package-cleanup --leaves
清理当前软件仓库不再支持的孤儿包:
package-cleanup --orphans
清理旧内核:
package-cleanup --oldkernels
更多请man yum-utilsman package-cleanup
也可以利用yum插件删除依赖关系:
安装yum-remove-with-leaves.noarch插件:
yum install yum-remove-with-leaves.noarch
卸载软件时连同依赖一并卸载:
yum remove smplayer --remove-leaves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment