Web lists-archives.com

Re: O/S upgrade - dpkg still shows old version for some packages




On Mon, 21 May 2018 11:29:53 +0000 John Horne said:

[--8<--]

> dpkg -p nodejs
> ...
> Version: 0.10.37-1chl1~lucid1
> 
> nodejs -v
> v4.8.2
> 
> apt-get install nodejs
> ...
> nodejs is already the newest version (4.8.2~dfsg-1).

"dpkg -p" shows initial installation status (/var/lib/dpkg/available) whereas
"dpkg -s" shows actual status.

E.g. on my system;

~$ dpkg -p bash
  Version: 4.4-5

~$ dpkg -s bash
  Version: 4.4.18-2

~$ LANG=C apt-cache policy bash
bash:
  Installed: 4.4.18-2
  Candidate: 4.4.18-2+b1
  Version table:
    4.4.18-2+b1 500
      500 http://ftp.metu.edu.tr/debian testing/main amd64 Packages
       20 http://ftp.metu.edu.tr/debian unstable/main amd64 Packages
*** 4.4.18-2 100
      100 /var/lib/dpkg/status
    4.4-5 500
      500 file:/sdb6/software/debian-9.2.1-amd64-DVD-1 stretch/main amd64
      Packages

Regards
-- 
Abdullah Ramazanoğlu