Apt-get: how to know what version will be installed?

NoOp glgxg at sbcglobal.net
Fri Oct 31 17:52:30 UTC 2008


On 10/31/2008 08:56 AM, Avi Greenbury wrote:
> Dotan Cohen wrote:
>> Before installing an application with apt-get, I would like to check
>> which version will be installed. How does one do that?
>> 
>> Thanks in advance.
>> 
> 
> The top few lines of
> apt-cache showpkg <package name>
> give version information.
> 

That works well & provides required dependencies etc. However if you
just want a short, simple output I just use the '-s' option to simulate
an install. For example:

$ sudo apt-get install -s atomix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  atomix-data
The following NEW packages will be installed:
  atomix atomix-data
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst atomix-data (2.14.0-1 Ubuntu:8.04/hardy)
Inst atomix (2.14.0-1 Ubuntu:8.04/hardy)
Conf atomix-data (2.14.0-1 Ubuntu:8.04/hardy)
Conf atomix (2.14.0-1 Ubuntu:8.04/hardy)

Note that the above doesn't actually install anything, intead it just
simulates the install.

And using apt-cache showpkg:

$ apt-cache showpkg atomix
Package: atomix
Versions:
2.14.0-1
(/var/lib/apt/lists/ftp.usf.edu_pub_ubuntu_dists_hardy_main_binary-i386_Packages)
 Description Language:
                 File:
/var/lib/apt/lists/ftp.usf.edu_pub_ubuntu_dists_hardy_main_binary-i386_Packages
                  MD5: 1fdd9dba30c9b26f4eb2f1dc6e38ed09

Reverse Depends:
  education-logic-games,atomix
  edubuntu-desktop-kde,atomix
  edubuntu-desktop,atomix
  edubuntu-addon-young,atomix
  edubuntu-addon-legacy,atomix
Dependencies:
2.14.0-1 - libart-2.0-2 (2 2.3.16) libatk1.0-0 (2 1.9.0) libbonobo2-0 (2
2.13.0) libbonoboui2-0 (2 2.5.4) libc6 (2 2.4-1) libcairo2 (2 1.0.2-2)
libfontconfig1 (2 2.3.0) libgconf2-4 (2 2.13.5) libglib2.0-0 (2 2.11.3)
libgnome-keyring0 (2 0.5.1) libgnome2-0 (2 2.8.0) libgnomecanvas2-0 (2
2.11.1) libgnomeui-0 (2 2.13.0) libgnomevfs2-0 (2 2.15.2) libgtk2.0-0 (2
2.8.0) libice6 (0 (null)) liborbit2 (2 1:2.10.0) libpango1.0-0 (2
1.12.2) libpopt0 (2 1.10) libsm6 (0 (null)) libx11-6 (0 (null))
libxcursor1 (4 1.1.2) libxext6 (0 (null)) libxfixes3 (0 (null)) libxi6
(0 (null)) libxinerama1 (0 (null)) libxml2 (2 2.6.26) libxrandr2 (0
(null)) libxrender1 (0 (null)) zlib1g (2 1:1.2.1) atomix-data (2
2.14.0-1) atomix-data (3 2.13.3)
Provides:
2.14.0-1 -
Reverse Provides:





More information about the ubuntu-users mailing list