为什么 Debian 推荐使用 aptitude 而 ubuntu 推荐使用 apt-get 呢?[解决]

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
ectotherm
帖子: 225
注册时间: 2006-05-23 13:35
联系:

为什么 Debian 推荐使用 aptitude 而 ubuntu 推荐使用 apt-get 呢?[解决]

#1

帖子 ectotherm » 2006-07-10 12:08

同题。
上次由 ectotherm 在 2006-07-26 14:31,总共编辑 1 次。
头像
jackson0905
帖子: 51
注册时间: 2006-03-21 22:30

#2

帖子 jackson0905 » 2006-07-10 12:46

我觉得ubuntu是定位在易用性上的,因此就推荐apt-get吧。
毕竟apt-get install XXX 总容易过在选项中找方便多了。
头像
ectotherm
帖子: 225
注册时间: 2006-05-23 13:35
联系:

#3

帖子 ectotherm » 2006-07-10 15:34

aptitude 是集成 apt-get apt-cache apt-key 等等 apt 命令的,所以完全支持 sudo aptitude install XXX 的功能。难道就为了 apt-get 比 aptitude 少一个字母吗?
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#4

帖子 oneleaf » 2006-07-10 16:06

Ubuntu一般是推荐新立得,楼主说推荐apt-get?主要是为了写文章方便。
头像
sigma
帖子: 439
注册时间: 2006-06-01 22:45
来自: Fujian

#5

帖子 sigma » 2006-07-10 16:14

嗯,偶就是用新利得的,哈哈
被时间羁绊,被邪恶包围……空气稀薄
头像
ectotherm
帖子: 225
注册时间: 2006-05-23 13:35
联系:

#6

帖子 ectotherm » 2006-07-10 17:00

我更喜欢直接在终端下用 apt,新立得在 kubuntu 上是没有的,有的是一个 kapt 什么什么的,一时忘了叫什么。但是永远没有直接命令来得方便。

在终端下输入 apt-get --help 和 aptitude --help 分别出来的最后一句话是:“本 apt-get 有非凡的牛力”“这个 aptitude 没有非凡的牛力”各位可以试试。别说是 ubuntu 官方敲错了字。
头像
jackson0905
帖子: 51
注册时间: 2006-03-21 22:30

#7

帖子 jackson0905 » 2006-07-10 20:49

ectotherm 写了:我更喜欢直接在终端下用 apt,新立得在 kubuntu 上是没有的,有的是一个 kapt 什么什么的,一时忘了叫什么。但是永远没有直接命令来得方便。

在终端下输入 apt-get --help 和 aptitude --help 分别出来的最后一句话是:“本 apt-get 有非凡的牛力”“这个 aptitude 没有非凡的牛力”各位可以试试。别说是 ubuntu 官方敲错了字。
呵呵,开发者也很有幽默感阿。
头像
ectotherm
帖子: 225
注册时间: 2006-05-23 13:35
联系:

#8

帖子 ectotherm » 2006-07-11 12:20

先不管幽默不,照 ubuntu 的意思,我们该使用 apt-get 还是 aptitude?我个人倾向于使用 aptitude 但就担心 ubuntu 对 apt-get 有什么额外的加强。
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#9

帖子 millenniumdark » 2006-07-11 21:50

当然是apptitude强劲了。
大多数文档都写apt-get,是因为apt-get比apptitude老。
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#10

帖子 millenniumdark » 2006-07-11 21:54

ectotherm 写了:我更喜欢直接在终端下用 apt,新立得在 kubuntu 上是没有的,有的是一个 kapt 什么什么的,一时忘了叫什么。但是永远没有直接命令来得方便。

在终端下输入 apt-get --help 和 aptitude --help 分别出来的最后一句话是:“本 apt-get 有非凡的牛力”“这个 aptitude 没有非凡的牛力”各位可以试试。别说是 ubuntu 官方敲错了字。
“非凡的牛力”是类似彩蛋的东西。有兴趣google一下看如何把它挖出来。aptitude其实是此地无银三百两,他也是有非凡的牛力的。
头像
ectotherm
帖子: 225
注册时间: 2006-05-23 13:35
联系:

#11

帖子 ectotherm » 2006-07-11 22:02

原来 ubuntu 还留这手,知道了,谢谢!
头像
ectotherm
帖子: 225
注册时间: 2006-05-23 13:35
联系:

#12

帖子 ectotherm » 2006-07-26 14:35

很多的 apt 源,使用 sudo aptitude update 不能完全下载,用 aptitude upgrade && aptitude dist-upgrade 不能完全升级;但用 apt-get 都可以,看来还是要用 apt-get。
头像
Einhorn
帖子: 114
注册时间: 2006-04-29 10:24

#13

帖子 Einhorn » 2006-07-26 22:20

长见识了,哈哈~
头像
drivel
帖子: 1918
注册时间: 2006-07-08 9:21
来自: University of Science and Technology Beijing
联系:

#14

帖子 drivel » 2006-07-26 22:24

ectotherm 写了:我更喜欢直接在终端下用 apt,新立得在 kubuntu 上是没有的,有的是一个 kapt 什么什么的,一时忘了叫什么。但是永远没有直接命令来得方便。

在终端下输入 apt-get --help 和 aptitude --help 分别出来的最后一句话是:“本 apt-get 有非凡的牛力”“这个 aptitude 没有非凡的牛力”各位可以试试。别说是 ubuntu 官方敲错了字。
:em34 真的啊
tt7646
帖子: 163
注册时间: 2006-03-26 17:16
来自: 广东中山

#15

帖子 tt7646 » 2006-07-26 22:54

tt@ubuntu:~$ apt-get --help
apt 0.6.43.3ubuntu2 for linux i386 compiled on Apr 18 2006 19:46:38
Usage: apt-get [options] command
apt-get [options] install|remove pkg1 [pkg2 ...]
apt-get [options] source pkg1 [pkg2 ...]

apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.

Commands:
update - Retrieve new lists of packages
upgrade - Perform an upgrade
install - Install new packages (pkg is libc6 not libc6.deb)
remove - Remove packages
source - Download source archives
build-dep - Configure build-dependencies for source packages
dist-upgrade - Distribution upgrade, see apt-get(8)
dselect-upgrade - Follow dselect selections
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies

Options:
-h This help text.
-q Loggable output - no progress indicator
-qq No output except for errors
-d Download only - do NOT install or unpack archives
-s No-act. Perform ordering simulation
-y Assume Yes to all queries and do not prompt
-f Attempt to continue if the integrity check fails
-m Attempt to continue if archives are unlocatable
-u Show a list of upgraded packages as well
-b Build the source package after fetching it
-V Show verbose version numbers
-c=? Read this configuration file
-o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
This APT has Super Cow Powers.

tt@ubuntu:~$ aptitude --help
aptitude 0.4.0
Usage: aptitude [-S fname] [-u|-i]
aptitude [options] <action> ...
Actions (if none is specified, aptitude will enter interactive mode):

install - Install/upgrade packages
remove - Remove packages
purge - Remove packages and their configuration files
hold - Place packages on hold
unhold - Cancel a hold command for a package
markauto - Mark packages as having been automatically installed
unmarkauto - Mark packages as having been manually installed
forbid-version - Forbid aptitude from upgrading to a specific package version.
update - Download lists of new/upgradable packages
upgrade - Perform a safe upgrade
dist-upgrade - Perform an upgrade, possibly installing and removing packages
forget-new - Forget what packages are "new"
search - Search for a package by name and/or expression
show - Display detailed information about a package
clean - Erase downloaded package files
autoclean - Erase old downloaded package files
changelog - View a package's changelog
download - Download the .deb file for a package
reinstall - Download and (possibly) reinstall a currently installed package

Options:
-h This help text
-s Simulate actions, but do not actually perform them.
-d Only download packages, do not install or remove anything.
-P Always prompt for confirmation or actions
-y Assume that the answer to simple yes/no questions is 'yes'
-F format Specify a format for displaying search results; see the manual
-O order Specify how search results should be sorted; see the manual
-w width Specify the display width for formatting search results
-f Aggressively try to fix broken packages.
-V Show which versions of packages are to be installed.
-D Show the dependencies of automatically changed packages.
-Z Show the change in installed size of each package.
-v Display extra information. (may be supplied multiple times)
-t [release] Set the release from which packages should be installed
-q In command-line mode, suppress the incremental progress indicators.
-o key=val Directly set the configuration option named 'key'
--with(out)-recommends Specify whether or not to treat recommends as
strong dependencies
-S fname: Read the aptitude extended status info from fname.
-u : Download new package lists on startup.
-i : Perform an install run on startup.

This aptitude does not have Super Cow Powers.
从明天起,做一个幸福的人.
过着简单的生活.
很惬意,没有纷争.
家人很快乐.朋友都幸福.
爱我的人和我爱的人是同一个人.
回复