这与我3年前问过的一个问题有关。从那以后,事情发生了一些明显的变化。其中一个明显的问题是,天赋本身已经从原来的0.8.12变到0.8.12,或者更准确地说-
$ aptitude --version
aptitude 0.8.12
Compiler: g++ 9.2.1 20190821
Compiled against:
apt version 5.0.2
NCurses version 6.1
libsigc++ version: 2.10.1
Gtk+ support disabled.
Qt support disabled.
Current library versions:
NCurses version: ncurses 6.1.20191019
cwidget version: 0.5.18
Apt version: 5.0.2另一件已经改变的事情是,智能文档中有它的文档-doc,而我感兴趣的要点/文档位于-
file:///usr/share/doc/aptitude/html/en/ch02s05s05.html
上面写着-
选项: Aptitude::CmdLine::Verbose默认:0描述:这控制智能的命令行模式的详细程度。-v命令行选项的每次出现都会将1添加到此值。
现在,配置文件应该位于三个位置之一,我选择并在
$ cat ~/.aptitude/config
Aptitude "";
Aptitude::CmdLine "";
Aptitude::CmdLine::Verbose "2";现在我不知道这是否足够好。我试过以下命令-
$ sudo apt update 和
$ sudo aptitude update 但都没有给我更多的产出。我做错什么了吗?
发布于 2019-12-07 09:30:19
关于详细设置,您的配置是正确的(但您只需要最后一行)。然而,apt update不使用智能的设置,所以您不会看到有什么不同。与aptitude update的区别很小,它在末尾添加了一个状态栏,显示了可升级包的数量等等。
要检查详细设置,最好的命令是aptitude moo:它为每次设置最多6的细节显示不同的消息。
发布于 2019-12-09 11:38:22
Aptitude::CmdLine::Verbose "2";$ sudo aptitude update,但没有给我更多的输出。
对我来说,示例配置或额外的-v有更多的输出(确切地说,在末尾再输出一行),例如在中,其智能为0.8.12-1:
# aptitude update
Hit http://debian.ethz.ch/debian sid InRelease
# aptitude -v update
Hit http://debian.ethz.ch/debian sid InRelease
Current status: 0 (+0) broken, 0 (+0) upgradable, 17358 (+0) new.
# echo 'Aptitude::CmdLine::Verbose "2";' >> .aptitude/config
# aptitude update
Hit http://debian.ethz.ch/debian sid InRelease
Current status: 0 (+0) broken, 0 (+0) upgradable, 17358 (+0) new.
#请注意,随着详细的增加,智能也输出包统计差异。
然而,这似乎是一个错误,因为预计智能也会输出这些统计数据,但没有:
# aptitude -o Aptitude::CmdLine::Verbose=2 update
Hit http://debian.ethz.ch/debian sid InRelease
#我把这个报告给Debian了。谢谢你提出这个话题。
JFTR:我还可以在Debian10Buster上复制这个(只测试了-v vs -o Aptitude::CmdLine::Verbose=2),智能0.8.11-7,Debian9拉伸,智能0.8.7-1,Debian8Jessie智能0.6.11-1+b1。
https://unix.stackexchange.com/questions/555993
复制相似问题