请问怎么清理无用的软件包? 以前用的yum有package-cleanup工具;现在已经把yum卸载了用dnf了,发现它安装的时候安装的依赖包在卸载时并没有都卸载,怎样清理呢?
$man dnf ... dnf [options] autoremove Removes all "leaf" packages from the system that were originally installed as dependencies of user-installed packages but which are no longer required by any such package. ... 所以现在用 sudo dnf autoremove可以完成。 On 01/09/2016 11:04 AM, lyfbuaa wrote:
请问怎么清理无用的软件包? 以前用的yum有package-cleanup工具;现在已经把yum卸载了用dnf了,发现它安装的时候安装的依赖包在卸载时并没有都卸载,怎样清理呢? -- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
可靠吗? 我也看到这个选项了,没敢用。 比如我刚跑了下,结果这个包就在列,可是我是要用的呢。 gcc-5.3.1-2.fc23.x86_64
当前: [abc@localhost ~]$ rpm -qa|grep gcc gcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.i686
还有它列出了下面两个包,我理解当前已经编译完相关组件确实是不再被需要了,但如果akmod被卸载的话,下次 VirtualBox升级不就不能自动编译(升级)相应版本的kmod了吗? 而且kmod-VirtualBox有两个版本却没列出来? VirtualBox-kmodsrc x86_64 5.0.10-1.fc23 @rpmfusion-free-updates akmod-VirtualBox x86_64 5.0.10-1.fc23 @rpmfusion-free-updates
当前VirtualBox相关: [abc@localhost ~]$ rpm -qa|grep VirtualBox VirtualBox-kmodsrc-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.8-300.fc23.x86_64-5.0.10-1.fc23.x86_64 akmod-VirtualBox-5.0.10-1.fc23.x86_64 VirtualBox-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.5-300.fc23.x86_64-5.0.10-1.fc23.x86_64
在 2016-01-09 11:12:30,"Zamir SUN" zsun@fedoraproject.org 写道:
$man dnf ... dnf [options] autoremove Removes all "leaf" packages from the system that were originally installed as dependencies of user-installed packages but which are no longer required by any such package. ... 所以现在用 sudo dnf autoremove可以完成。 On 01/09/2016 11:04 AM, lyfbuaa wrote:
请问怎么清理无用的软件包? 以前用的yum有package-cleanup工具;现在已经把yum卸载了用dnf了,发现它安装的时候安装的依赖包在卸载时并没有都卸载,怎样清理呢? -- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Zamir SUN zsun@fedoraproject.org zsun in #fedora-zh #openshift on freenode.net -- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
哈哈,我也跑了以下这个命令,结果他要删除我的VLC还有wireshark. 我前几分钟都还在用这两个包。
2016-01-09 18:02 GMT+08:00 lyfbuaa lyfbuaa@163.com:
可靠吗? 我也看到这个选项了,没敢用。 比如我刚跑了下,结果这个包就在列,可是我是要用的呢。 gcc-5.3.1-2.fc23.x86_64
当前: [abc@localhost ~]$ rpm -qa|grep gcc gcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.i686
还有它列出了下面两个包,我理解当前已经编译完相关组件确实是不再被需要了,但如果akmod被卸载的话,下次 VirtualBox升级不就不能自动编译(升级)相应版本的kmod了吗? 而且kmod-VirtualBox有两个版本却没列出来? VirtualBox-kmodsrc x86_64 5.0.10-1.fc23 @rpmfusion-free-updates akmod-VirtualBox x86_64 5.0.10-1.fc23 @rpmfusion-free-updates
当前VirtualBox相关: [abc@localhost ~]$ rpm -qa|grep VirtualBox VirtualBox-kmodsrc-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.8-300.fc23.x86_64-5.0.10-1.fc23.x86_64 akmod-VirtualBox-5.0.10-1.fc23.x86_64 VirtualBox-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.5-300.fc23.x86_64-5.0.10-1.fc23.x86_64
在 2016-01-09 11:12:30,"Zamir SUN" zsun@fedoraproject.org 写道:
$man dnf ... dnf [options] autoremove Removes all "leaf" packages from the system that were originally installed as dependencies of user-installed packages but which are no longer required by any such package. ... 所以现在用 sudo dnf autoremove可以完成。 On 01/09/2016 11:04 AM, lyfbuaa wrote:
请问怎么清理无用的软件包?
以前用的yum有package-cleanup工具;现在已经把yum卸载了用dnf了,发现它安装的时候安装的依赖包在卸载时并没有都卸载,怎样清理呢?
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Zamir SUN zsun@fedoraproject.org zsun in #fedora-zh #openshift on freenode.net -- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
dnf autoremove 删除的是独立叶节点的包,肯定不可靠
在 2016年1月9日 下午6:06,Yang Zhang yzfedora@gmail.com写道:
哈哈,我也跑了以下这个命令,结果他要删除我的VLC还有wireshark. 我前几分钟都还在用这两个包。
2016-01-09 18:02 GMT+08:00 lyfbuaa lyfbuaa@163.com:
可靠吗? 我也看到这个选项了,没敢用。 比如我刚跑了下,结果这个包就在列,可是我是要用的呢。 gcc-5.3.1-2.fc23.x86_64
当前: [abc@localhost ~]$ rpm -qa|grep gcc gcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.i686
还有它列出了下面两个包,我理解当前已经编译完相关组件确实是不再被需要了,但如果akmod被卸载的话,下次 VirtualBox升级不就不能自动编译(升级)相应版本的kmod了吗? 而且kmod-VirtualBox有两个版本却没列出来? VirtualBox-kmodsrc x86_64 5.0.10-1.fc23 @rpmfusion-free-updates akmod-VirtualBox x86_64 5.0.10-1.fc23 @rpmfusion-free-updates
当前VirtualBox相关: [abc@localhost ~]$ rpm -qa|grep VirtualBox VirtualBox-kmodsrc-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.8-300.fc23.x86_64-5.0.10-1.fc23.x86_64 akmod-VirtualBox-5.0.10-1.fc23.x86_64 VirtualBox-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.5-300.fc23.x86_64-5.0.10-1.fc23.x86_64
在 2016-01-09 11:12:30,"Zamir SUN" zsun@fedoraproject.org 写道:
$man dnf ... dnf [options] autoremove Removes all "leaf" packages from the system that were originally installed as dependencies of user-installed packages but which are no longer required by any such package. ... 所以现在用 sudo dnf autoremove可以完成。 On 01/09/2016 11:04 AM, lyfbuaa wrote:
请问怎么清理无用的软件包?
以前用的yum有package-cleanup工具;现在已经把yum卸载了用dnf了,发现它安装的时候安装的依赖包在卸载时并没有都卸载,怎样清理呢?
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Zamir SUN zsun@fedoraproject.org zsun in #fedora-zh #openshift on freenode.net -- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
用 dnf mark instal XXX 来指定哪些包是手动安装的,反操作是 dnf mark remove XXX
2016-01-09 19:52 GMT+08:00 Szopen Xiao chopins.xiao@gmail.com:
dnf autoremove 删除的是独立叶节点的包,肯定不可靠
在 2016年1月9日 下午6:06,Yang Zhang yzfedora@gmail.com写道:
哈哈,我也跑了以下这个命令,结果他要删除我的VLC还有wireshark. 我前几分钟都还在用这两个包。
2016-01-09 18:02 GMT+08:00 lyfbuaa lyfbuaa@163.com:
可靠吗? 我也看到这个选项了,没敢用。 比如我刚跑了下,结果这个包就在列,可是我是要用的呢。 gcc-5.3.1-2.fc23.x86_64
当前: [abc@localhost ~]$ rpm -qa|grep gcc gcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.i686
还有它列出了下面两个包,我理解当前已经编译完相关组件确实是不再被需要了,但如果akmod被卸载的话,下次 VirtualBox升级不就不能自动编译(升级)相应版本的kmod了吗? 而且kmod-VirtualBox有两个版本却没列出来? VirtualBox-kmodsrc x86_64 5.0.10-1.fc23 @rpmfusion-free-updates akmod-VirtualBox x86_64 5.0.10-1.fc23 @rpmfusion-free-updates
当前VirtualBox相关: [abc@localhost ~]$ rpm -qa|grep VirtualBox VirtualBox-kmodsrc-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.8-300.fc23.x86_64-5.0.10-1.fc23.x86_64 akmod-VirtualBox-5.0.10-1.fc23.x86_64 VirtualBox-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.5-300.fc23.x86_64-5.0.10-1.fc23.x86_64
在 2016-01-09 11:12:30,"Zamir SUN" zsun@fedoraproject.org 写道:
$man dnf ... dnf [options] autoremove Removes all "leaf" packages from the system that were
originally
installed as dependencies of user-installed packages but which
are
no longer required by any such package. ... 所以现在用 sudo dnf autoremove可以完成。 On 01/09/2016 11:04 AM, lyfbuaa wrote:
请问怎么清理无用的软件包?
以前用的yum有package-cleanup工具;现在已经把yum卸载了用dnf了,发现它安装的时候安装的依赖包在卸载时并没有都卸载,怎样清理呢?
-- Fedora中文郵件列表:
https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Zamir SUN zsun@fedoraproject.org zsun in #fedora-zh #openshift on freenode.net -- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
好的,谢谢,下次我试试这种方法;但是想清理从仓库安装的但卸载没卸干净的有办法没?
在 2016-01-10 09:22:46,"Robin Lee" robinlee.sysu@gmail.com 写道:
用 dnf mark instal XXX 来指定哪些包是手动安装的,反操作是 dnf mark remove XXX
2016-01-09 19:52 GMT+08:00 Szopen Xiao chopins.xiao@gmail.com:
dnf autoremove 删除的是独立叶节点的包,肯定不可靠
在 2016年1月9日 下午6:06,Yang Zhang yzfedora@gmail.com写道:
哈哈,我也跑了以下这个命令,结果他要删除我的VLC还有wireshark. 我前几分钟都还在用这两个包。
2016-01-09 18:02 GMT+08:00 lyfbuaa lyfbuaa@163.com:
可靠吗? 我也看到这个选项了,没敢用。 比如我刚跑了下,结果这个包就在列,可是我是要用的呢。 gcc-5.3.1-2.fc23.x86_64
当前: [abc@localhost ~]$ rpm -qa|grep gcc gcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.x86_64 libgcc-5.3.1-2.fc23.i686
还有它列出了下面两个包,我理解当前已经编译完相关组件确实是不再被需要了,但如果akmod被卸载的话,下次 VirtualBox升级不就不能自动编译(升级)相应版本的kmod了吗? 而且kmod-VirtualBox有两个版本却没列出来? VirtualBox-kmodsrc x86_64 5.0.10-1.fc23 @rpmfusion-free-updates akmod-VirtualBox x86_64 5.0.10-1.fc23 @rpmfusion-free-updates
当前VirtualBox相关: [abc@localhost ~]$ rpm -qa|grep VirtualBox VirtualBox-kmodsrc-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.8-300.fc23.x86_64-5.0.10-1.fc23.x86_64 akmod-VirtualBox-5.0.10-1.fc23.x86_64 VirtualBox-5.0.10-1.fc23.x86_64 kmod-VirtualBox-4.2.5-300.fc23.x86_64-5.0.10-1.fc23.x86_64
在 2016-01-09 11:12:30,"Zamir SUN" zsun@fedoraproject.org 写道:
$man dnf ... dnf [options] autoremove Removes all "leaf" packages from the system that were
originally
installed as dependencies of user-installed packages but which
are
no longer required by any such package. ... 所以现在用 sudo dnf autoremove可以完成。 On 01/09/2016 11:04 AM, lyfbuaa wrote:
请问怎么清理无用的软件包?
以前用的yum有package-cleanup工具;现在已经把yum卸载了用dnf了,发现它安装的时候安装的依赖包在卸载时并没有都卸载,怎样清理呢?
-- Fedora中文郵件列表:
https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Zamir SUN zsun@fedoraproject.org zsun in #fedora-zh #openshift on freenode.net -- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
请参考 man yum2dnf 手册。
在 2016-01-09 的 11:04 +0800,lyfbuaa写道:
请问怎么清理无用的软件包? 以前用的yum有package- cleanup工具;现在已经把yum卸载了用dnf了,发现它安装的时候安装的依赖包在卸载时并没有都卸载,怎样清理呢? -- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
话说当初在做 dnf 本地化的时候便发现 autoremove 这个奇葩的命令,非常具有误导性,而且竟然连说明都没有,相比之下其他的命令都有足够明晰的说明表示是做何用途的。
不过 dnf 是默认在删除时一并卸载无用的软件包的,理论上不会再有残留了。具体便是 Peng 说的 yum2dnf 中的 CLEAN_REQUIREMENTS_ON_REMOVE ON BY DEFAULT 部分。
2016-01-11 11:35 GMT+08:00 Peng Wu peng.e.wu@gmail.com:
请参考 man yum2dnf 手册。
在 2016-01-09 的 11:04 +0800,lyfbuaa写道:
请问怎么清理无用的软件包? 以前用的yum有package- cleanup工具;现在已经把yum卸载了用dnf了,发现它安装的时候安装的依赖包在卸载时并没有都卸载,怎样清理呢? -- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
-- Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
chinese@lists.fedoraproject.org