[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#315149: apt-get -V should display version information more often



Package: apt
Version: 0.5.28.6
Severity: wishlist

For consistency, it would be nice if "apt-get -V install" displayed pkg version info as it normally does, even when the pkg is already the newest version.
For example, apt-get -V install works well for new installs and upgrades, showing pkg versions:
[root]# apt-get install di
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  di

[root]# apt-get -V install di
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
   di (3.11.dfsg.1-1)

Nice. But currently, we get this output with the -V flag in the case of current pkgs:
[root]# apt-get -V install lsof
Reading Package Lists... Done
Building Dependency Tree... Done
lsof is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I'd like to suggest that the version also be shown in this case, perhaps like:
[root]# apt-get -V install lsof
Reading Package Lists... Done
Building Dependency Tree... Done
lsof is already the newest version (4.75.dfsg.1-1)
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

This would seem to remain consistent with the current manpage, which states:
-V, --verbose-versions,
Show full versions for upgraded and installed packages. Configuration Item: APT::Get::Show-Versions.

-Darren

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "if dpkg -s apt-listbugs | grep -q '^Status: .* ok installed'; then /usr/sbin/apt-listbugs apt || ( test $? -ne 10 || exit 10; echo 'Warning: apt-listbugs exited abnormally, hit enter key to continue.' 1>&2 ; read a < /dev/tty ); fi";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

deb http://cyan.sell.int:9999/debian testing main contrib non-free
deb http://cyan.sell.int:9999/debian stable main contrib non-free
deb http://cyan.sell.int:9999/security stable/updates main contrib non-free

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libgcc1                     1:4.0.0-9    GCC support library
ii  libstdc++5                  1:3.3.5-13   The GNU Standard C++ Library v3

-- no debconf information



Reply to: