使能力减少冗长


12

人们这么说 aptitude 在Debian上要好得多 apt-get,但我发现它不太有用。 (参见下面的示例。)是否有任何配置魔术 aptitude 摆脱那些无用的状态信息?

» aptitude install foo
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Couldn't find any package whose name or description matched "foo"
Couldn't find any package whose name or description matched "foo"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...

相比:

» apt-get install foo
Reading package lists...
Building dependency tree...
Reading state information...
E: Couldn't find package foo

Answers:


7

您可以通过放置以下行来配置aptitude(和apt-get)的安静性:

quiet = "2";

在开始或结束时 /etc/apt/apt.conf


9

试试看 -q-q=2 要么 -qq 在命令的末尾,例如:

sudo aptitude update -q=2

是否有任何来源记录 什么 消息安静模式是否过滤?
Titus
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.