分享

aptitude 使用快速参考

 农夫子oice 2009-11-04

aptitude 使用快速参考

aptitude 与 apt-get 一样,是 Debian 及其衍生系统中功能极其强大的包管理工具。与 apt-get 不同的是,aptitude 在处理依赖问题上更佳一些。举例来说,aptitude 在删除一个包时,会同时删除本身所依赖的包。这样,系统中不会残留无用的包,整个系统更为干净。以下是笔者总结的一些常用 aptitude 命令,仅供参考。

命令 作用
aptitude update 更新可用的包列表
aptitude upgrade 升级可用的包
aptitude dist-upgrade 将系统升级到新的发行版
aptitude install pkgname 安装包
aptitude remove pkgname 删除包
aptitude purge pkgname 删除包及其配置文件
aptitude search string 搜索包
aptitude show pkgname 显示包的详细信息
aptitude clean 删除下载的包文件
aptitude autoclean 仅删除过期的包文件

当然,你也可以在文本界面模式中使用 aptitude。

署名 • 注明出处 • 非商业性使用

8 Comments

  1. 1 karron Commented @ 2006-11-25 11:40 amReply to this comment

    edgy的apt-get有个autoremove的命令,也会自动清除没有用的包.

  2. 2 我本疯狂 Trackbacked @ 2006-11-25 11:46 amReply to this comment

    aptitude 使用快速参考...

    aptitude 与 apt-get 一样,是 Debian 及其衍生系统中功能极其强大的包管理工具。与 apt-get 不同的是,aptitude 在处理依赖问题上更佳一些。举例来说,aptitude 在删除一个包时,会同时删除本身所依....

  3. 3 Toy Commented @ 2006-11-25 11:56 amReply to this comment

    @karron:谢谢你的提示!呵呵,我已经更新到另一篇 apt 的总结中了。

  4. 4 jjk Commented @ 2006-11-26 10:28 pmReply to this comment

    hi,有个问题,请教一下,怎么查找我apt安装的软件都安装在哪个目录下了?

  5. 5 luren Commented @ 2006-11-27 4:34 pmReply to this comment

    奇怪为什么aptitude不直接支持安装非源里的软件包

  6. 6 luren Commented @ 2006-11-27 4:35 pmReply to this comment

    jjk, dpkg -L 软件包

  7. 7 carelezz Commented @ 2006-12-12 2:28 pmReply to this comment

    aptitude 与 apt-get 最好不要混用,因为双方都不知道对方做了些什么。否则 aptitude 会删除一些 apt-get build 的套件。

  8. 8 Toy Commented @ 2006-12-13 8:55 amReply to this comment

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多