-
-
Save Wind4/398efef7e4a87c5440c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
安装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