
最近留意到有apt-get和aptitude两种命令,也上网搜索了一下两者的区别,但我还是不太懂。
有些功能apt-get有,aptitude没有(当然,apt-get有超级牛力而aptitude没有啦,大家都知道,哈哈

可apt-get的依赖关系的建立和删除等又不如aptitude。
就是想请教,两者哪一个更好?如果各有所长,那对于我这种新手菜鸟来说,平时用哪种好啊,能不能只用一种命令?
请各位指点,谢谢!
代码: 全选
软件包: apt
状态: 已安装
自动安装: 否
版本号: 0.7.23.1ubuntu2
优先级: 重要
部分: admin
维护者: Ubuntu Core Developers <[email protected]>
未压缩尺寸: 5,370k
依赖于: libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.4.0)
推荐: ubuntu-keyring
建议: aptitude | synaptic | gnome-apt | wajig, dpkg-dev, apt-doc, bzip2, lzma,
python-apt
代替: libapt-pkg-dev (< 0.3.7), libapt-pkg-doc (< 0.3.7)
提供: libapt-pkg-libc6.10-6-4.8
描述: Advanced front-end for dpkg
This is Debian's next generation front-end for the dpkg package manager. It
provides the apt-get utility and APT dselect method that provides a simpler,
safer way to install and upgrade packages.
APT features complete installation ordering, multiple source capability and
several other unique features, see the Users Guide in apt-doc.
代码: 全选
软件包: aptitude
状态: 已安装
自动安装: 否
版本号: 0.4.11.11-1ubuntu6
优先级: 重要
部分: admin
维护者: Ubuntu Core Developers <[email protected]>
未压缩尺寸: 9,921k
依赖于: libapt-pkg-libc6.10-6-4.8, libc6 (>= 2.4), libcwidget3, libept0 (>=
0.5.26ubuntu2), libgcc1 (>= 1:4.1.1), libncursesw5 (>=
5.6+20071006-3), libsigc++-2.0-0c2a (>= 2.0.2), libstdc++6 (>=
4.4.0), libxapian15, zlib1g (>= 1:1.1.4)
推荐: libparse-debianchangelog-perl
建议: aptitude-doc-en | aptitude-doc, tasksel, debtags
描述: terminal-based package manager
aptitude is a terminal-based package manager with a number of useful features,
including: a mutt-like syntax for matching packages in a flexible manner,
dselect-like persistence of user actions, the ability to retrieve and display
the Debian changelog of most packages, and a command-line mode similar to that
of apt-get.
aptitude is also Y2K-compliant, non-fattening, naturally cleansing, and
housebroken.
IvanHan0511 写了:本人新手啦 :em06
最近留意到有apt-get和aptitude两种命令,也上网搜索了一下两者的区别,但我还是不太懂。
有些功能apt-get有,aptitude没有(当然,apt-get有超级牛力而aptitude没有啦,大家都知道,哈哈 :em05 );
可apt-get的依赖关系的建立和删除等又不如aptitude。
就是想请教,两者哪一个更好?如果各有所长,那对于我这种新手菜鸟来说,平时用哪种好啊,能不能只用一种命令?
请各位指点,谢谢!
什么意思啊,能说明一下吗5 楼 photor
aptitude从来没有成功地解决过一次依赖性问题
傻了吧。 aptitude就是为了输入4个字母就tab的。luofeng1989 写了:daf3707 写了:apt-get 字母少,输入快
我的意思是,当你真正遇到包的依赖性问题的时候,不要指望aptitude能够运用人工智能帮你解决IvanHan0511 写了:哈哈,谢谢各位!
又有进一步的理解了,其实命令行还有好多不懂,只知道安装、使用,中间那一堆代码我不认识它它不认识我![]()
不过什么意思啊,能说明一下吗5 楼 photor
aptitude从来没有成功地解决过一次依赖性问题
代码: 全选
autoclean build-dep clean dselect-upgrade purge source upgrade
autoremove check dist-upgrade install remove update
代码: 全选
--assume-yes --dry-run --list-cleanup --print-uris --tar-only
--auto-remove --fix-broken --no-act --purge --trivial-only
--build --fix-missing --no-download --quiet --version
--compile --force-yes --no-install-recommends --recon --yes
--config-file --help --no-remove --reinstall
--default-release --ignore-hold --no-upgrade --show-upgraded
--diff-only --ignore-missing --only-source --simulate
--download-only --just-print --option --target-release
代码: 全选
autoclean dist-upgrade full-upgrade markauto safe-upgrade unmarkauto why-not
build-dep download hold purge search update
changelog forbid-version install reinstall show upgrade
clean forget-new keep-all remove unhold why
代码: 全选
--assume-yes --prompt --show-versions --verbose --without-suggests
--display-format --purge-unused --simulate --version --with-recommends
--download-only --schedule-only --sort --width --with-suggests
--help --show-deps --target-release --without-recommends