利用好 Ailurus 的 APT 快照功能, 尝鲜软件, 不再怕依赖包堆积

{ 撰文/ihipop }
我喜欢尝试各种各样的软件,装上玩玩,感觉不对就删除之,但是,有的时候,软件卸载掉了,随同一起来的依赖却不走,占据我的磁盘空间~

为了解决这个问题,我一开始使用了 debfoster 来解决这个问题,但是,每次按下一大堆 Y/ P我觉得非常不爽,一不小心还会看走眼,现有 Ailurus 的,本着一定要用好他的精神,推荐使用 Ailurus 的 APT 快照功能。

每次安装大“家伙”前,现拍个快照,安装完毕后,点击对比即可显示出不同,拖动即可加入删除列表(支持多选,我喜欢这个功能)。

Read More:

26 Comments

  1. 1 qii Commented @ 2010-01-19 16:45Reply to this comment

    额,我想起了win下对比注册表/文件的那些工具了。

  2. 2 luojie-dune Commented @ 2010-01-19 16:49Reply to this comment

    差不多了,依赖问题。。。因为在玩,所以用这类沙盒模式??/

  3. 3 cdok Commented @ 2010-01-19 17:02Reply to this comment

    sudo apt-get autoremove??

  4. 4 ihipop Commented @ 2010-01-19 17:18Reply to this comment

    似乎autoremove也弄不干净的!

  5. 5 X Commented @ 2010-01-19 17:24Reply to this comment

    deb的包都是会自动卸载的(除了自己dpkg -i *安装的),卸载了最上层的包,再一个autoremove就把其它没用到的都清了

    再加一句: dpkg -P dpkg -l|grep ^rc 就OK了

    有必要装一个软件,还要做快照吗?

  6. 6 X Commented @ 2010-01-19 17:26Reply to this comment

    打漏了,应该是 dpkg -P `dpkg -l|grep ^rc|awk '{print $2}'

  7. 7 Homer Commented @ 2010-01-19 17:41Reply to this comment

    楼上说的跟这篇文章讲的是两码事呀。

    楼上的 dpkg -P 命令,功能是把所有的残余软件配置删了。

    这篇文章说的功能,是记录某段时间内 Ubuntu 上装了哪些软件的。

  8. 8 ihipop Commented @ 2010-01-19 17:48Reply to this comment

    @X: @X: 最上层的包?是哪个? 我装了个kubuntu-desktop 的虚包,删掉它之后,那些几百MB的kde下面的库文件,软件套件,赖着都不肯走的,一次快照才占十几KB空间,相对于连你自己都会打错的命令,我更倾向前者,在说了,我不是为了要用它的快照功能才装它的,小A和Tweak互相补充,我还看中它的其它功能呢!

  9. 9 不知者不怪哈 Commented @ 2010-01-19 18:07Reply to this comment

    @ihipop: 楼上息怒。俗话说“不知者不怪”嘛。不了解情况时,难免说错话。 还是要顶一下 ihipop 的。谢谢你写了这篇文章!

  10. 10 Daniel King Commented @ 2010-01-19 18:19Reply to this comment

    @Homer: 他说的是对autoremove的补充,先autoremove

  11. 11 coolwanglu Commented @ 2010-01-19 18:29Reply to this comment

    @ihipop: 是不是recommends装上的,如果是depends装上的感觉autoremove可以对付

  12. 12 黑日白月 Commented @ 2010-01-19 18:52Reply to this comment

    Fedora 的 yum 增加了 history 模式,可以查阅最近安装软件的记录,并能进行 undo 或者 redo 操作,感觉这种管理挺方便的~

    希望 apt 也增加类似的功能,或者已经实现了?

  13. 13 zakarum Commented @ 2010-01-19 19:05Reply to this comment

    @黑日白月: 竟然没注意有这个,我都是用脚本过滤yum.log来记录的。。。 remove-leaves插件还是不够智能化。

  14. 14 idiot Commented @ 2010-01-19 19:16Reply to this comment

    同样期待pacman或yaourt的history

  15. 15 cdok Commented @ 2010-01-19 19:22Reply to this comment

    对于自己装的 deb 包,可用 apt-forktracer 或新立得查看

  16. 16 garnettxd Commented @ 2010-01-19 22:08Reply to this comment

    ihipop老兄,你可以搜一下,怎样才能删除kubuntu-desktop,回复到原始的gnome状态,把那些底层都清理干净。有些老外专门贴出了sudo apt-get remove 。。。。。后面一长串东西,我用过,貌似不错,删了几百M

  17. 17 lxsed Commented @ 2010-01-19 22:45Reply to this comment

    yum 的history模式还不错

  18. 18 qii Commented @ 2010-01-19 22:52Reply to this comment

    @garnettxd: 不可靠啊,一是可能有ub版本差异,二是可能对方电脑里原先装的软件就跟自己的不一样(你要是事先已经装Amarok,而对方是没装Amarok情况下写的,那肯定不行)。

  19. 19 ihipop Commented @ 2010-01-19 23:31Reply to this comment

    楼上说的就是那个问题,说到点子上了,其实一个k-desktop他本身的依赖还被其它程序依赖着,有可能这些依赖在你安装k-desktop之前就装了,现在一起和k-desktop卸载了的话.肯定会"拉起骨头扯掉皮"的,正常程序也会受影响,而所谓快照,是一个比较好的解决办法,其实用dselect来getselections一下,生成一张已安装软件表即可,下次再getselections一次,diff一下即可,但是即然有人写了GUI,我还是喜欢Ailurus的图形操作多点!

  20. 20 damn Commented @ 2010-01-20 1:43Reply to this comment

    嗯嗯,是好东西。

  21. 21 realeric Commented @ 2010-01-20 10:19Reply to this comment

    我倒是不会这样干,软件装多了,依赖问题越来越不明显,干脆就让那些公用的软件包留着呗

  22. 22 Homer Commented @ 2010-01-20 10:24Reply to this comment

    @ihipop: 顶一下 ihipop 兄:)

  23. 23 kidfruit Commented @ 2010-01-20 14:47Reply to this comment

    看来没arch啥事……………………arch什么时候也有这类好用的工具就好了。

  24. 24 KDE Commented @ 2010-01-20 17:18Reply to this comment

    挺不错的软件,顶

  25. 25 npnufn Commented @ 2010-01-20 17:55Reply to this comment

    看上去不错

  26. 26 freedrive Commented @ 2010-01-21 12:18Reply to this comment

    很好。用新立得装的软件有历史记录,但是直接apt-get安装的软件就不清楚了