aptitude "Current status"的含义?(进行了简单的搜索,但搜索结果令我迷糊)

最大的社区版本,Ubuntu的发源地
回复
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

aptitude "Current status"的含义?(进行了简单的搜索,但搜索结果令我迷糊)

#1

帖子 科学之子 » 2016-10-01 17:16

aptitude "Current status"的含义?(进行了简单的搜索,但搜索结果令我迷糊)

代码: 全选

root@debian:~# aptitude safe-upgrade chromium
The following packages will be REMOVED:  
  libsrtp0{u} 
The following packages will be upgraded:
  chromium 
1 packages upgraded, 0 newly installed, 1 to remove and 188 not upgraded.
Need to get 41.7 MB of archives. After unpacking 10.3 MB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 http://mirrors.163.com/debian-security/ stable/updates/main chromium i386 53.0.2785.113-1~deb8u1 [41.7 MB]
Fetched 41.7 MB in 9s (4,419 kB/s)                                                                                                                                               
(Reading database ... 148698 files and directories currently installed.)
Preparing to unpack .../chromium_53.0.2785.113-1~deb8u1_i386.deb ...
Unpacking chromium (53.0.2785.113-1~deb8u1) over (47.0.2526.80-1~deb8u1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
(Reading database ... 148696 files and directories currently installed.)
Removing libsrtp0 (1.4.5~20130609~dfsg-1.1) ...
Processing triggers for libc-bin (2.19-18+deb8u1) ...
Setting up chromium (53.0.2785.113-1~deb8u1) ...
                                         
Current status: 188 updates [-2].
谷歌了些英文答案,但还是有些迷糊:
https://groups.google.com/forum/#!topic ... ZykphL_hbk
按照这个Google Groups的链接说意思就是"'更新'了2个包"(好像这里的更新可能是"改动"的意思,因为我只是"upgraded"了一个包,另一个包是"REMOVED")
但我找到了一个有些矛盾的东西:
https://www.linuxquestions.org/question ... 175464500/

代码: 全选

Current status: 5 updates [+5], 12997 new [+8].
难道意思是执行完safe-upgrade后需要更新的包反而更多了吗?
aptitude版本:

代码: 全选

$ aptitude --version
aptitude 0.6.11 compiled at Nov  8 2014 13:25:38
Compiler: g++ 4.9.1
Compiled against:
  apt version 4.12.0
  NCurses version 5.9
  libsigc++ version: 2.4.0
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20140913
  cwidget version: 0.5.17
  Apt version: 4.12.0
上次由 科学之子 在 2016-10-01 21:41,总共编辑 3 次。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: aptitude "Current status"的含义?(进行了简单的搜索,但搜索结果令我迷糊)

#2

帖子 poloshiao » 2016-10-01 17:53

但我找到了一个有些矛盾的东西:
每個指令 隨著不同版本 可能 manpage 內容不一樣
建議 最好附上每個指令的版本
才比較精準
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

Re: aptitude "Current status"的含义?(进行了简单的搜索,但搜索结果令我迷糊)

#3

帖子 科学之子 » 2016-10-01 17:58

poloshiao 写了:
但我找到了一个有些矛盾的东西:
每個指令 隨著不同版本 可能 manpage 內容不一樣
建議 最好附上每個指令的版本
才比較精準
感谢提醒:
aptitude版本:

代码: 全选

$ aptitude --version
aptitude 0.6.11 compiled at Nov  8 2014 13:25:38
Compiler: g++ 4.9.1
Compiled against:
  apt version 4.12.0
  NCurses version 5.9
  libsigc++ version: 2.4.0
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20140913
  cwidget version: 0.5.17
  Apt version: 4.12.0
另外"Compiled against"意思是?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: aptitude "Current status"的含义?(进行了简单的搜索,但搜索结果令我迷糊)

#4

帖子 poloshiao » 2016-10-01 18:53

http://serverfault.com/questions/482067 ... fe-upgrade
http://unix.stackexchange.com/questions ... us-warning

從上面兩個網頁說明 下述 掛號內的數字 應該是 動態的 比較前後兩次的變化
Current status: 188 updates [-2].
Current status: 5 updates [+5], 12997 new [+8].
"Compiled against"意思是?
http://www.linuxquestions.org/questions ... ry-927356/
To compile against particular version of library

Compiled against:
apt version 4.12.0
指 使用 apt 4.12.0 版本 編譯
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: aptitude "Current status"的含义?(进行了简单的搜索,但搜索结果令我迷糊)

#5

帖子 vickycq » 2016-10-01 20:08

科学之子 写了:'更新'了2个包"(好像这里的更新可能是"改动"的意思,因为我只是"upgraded"了一个包,另一个包是"REMOVED")
原来有 190 个包可更新,其中包括 chromium, libsrtp0
现在更新了 chromium (更新过了自然不需要再更新)
移除了 libsrtp0 (删掉了自然不需要再更新)
还剩 188 个包可更新,和以前相比减少了 2 个
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

Re: aptitude "Current status"的含义?(进行了简单的搜索,但搜索结果令我迷糊)

#6

帖子 科学之子 » 2016-10-01 21:45

@poloshiao
@vickycq

那"+"是什么意思?
https://www.linuxquestions.org/question ... 175464500/
I ran aptitude and it had the following output:
Current status: 5 updates [+5], 12997 new [+8].

I applied the updates using aptitude safe-upgrade and it installed the 5 updates. What about the +8 12997 updates?
就算是安装的,刚安装的也是新的吧?,为什么updates后面会有[+5]?
难道是不同版本的标记方式差别?
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: aptitude "Current status"的含义?(进行了简单的搜索,但搜索结果令我迷糊)

#7

帖子 vickycq » 2016-10-01 22:12

科学之子 写了:难道意思是执行完safe-upgrade需要更新的包反而更多了吗?
帖中的原文为"I ran aptitude and it had the following output:......I applied the updates using aptitude safe-upgrade and it installed the 5 updates."
意为状态 "5 updates [+5]" 在运行 safe-upgrade 之前
科学之子 写了:就算是安装的,刚安装的也是新的吧?,为什么updates后面会有[+5]?
例可猜测为以下情况
昨天运行了 aptitude update && aptitude safe-upgrade,后状态为 "0 updates [-x]" (x 为更新的包数目);
今天运行 aptitude update,又有需要更新的包了,于是状态为 "5 updates [+5]"。
至于如何解释 12997 new [+8] 可再讨论
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复