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

Bug#654639: apt-get update should have an option to print available updates



Package: apt
Version: 0.8.16~exp8
Severity: wishlist
Tags: upstream

When you run `apt-get update`, it will shows something like this:
"(...)
Ign ftp://ftp.debian.org experimental/main Translation-en
Get:66 ftp://ftp.debian.org experimental/main Translation-fr
Ign ftp://ftp.debian.org experimental/main Translation-fr
Reading package lists... Done
"

It reads package lists but does not tell anything about available updates.
Then, usually, you run `apt-get upgrade` thats prints something like this:
"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  ffmpeg2theora libhsqldb-java php-pear php5-cgi php5-cli php5-common php5-fpm
  php5-gd php5-mcrypt php5-mysql php5-pgsql python-numpy
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
"

So currently, you have to run `upgrade`, even if the only thing that you want 
to know is if there are new updates or not.
It will be useful to add at the end of `update` output (after "Reading package lists... Done")
something like :
"There are 12 updates available for your packages:
ffmpeg2theora libhsqldb-java php-pear php5-cgi php5-cli php5-common php5-fpm
  php5-gd php5-mcrypt php5-mysql php5-pgsql python-numpy
"

This way, you do not have to run an extra command to get the information. 
As the first thing done by `upgrade` is also to read package lists, perhaps some
code from `upgrade` could be reused to achieve this.
-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "false";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Architectures "";
APT::Architectures:: "amd64";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
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::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::solvers "";
Dir::Bin::solvers:: "/usr/lib/apt/solvers";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/cdrom";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
Acquire::Languages:: "fr";
Unattended-Upgrade "";
Unattended-Upgrade::Origins-Pattern "";
Unattended-Upgrade::Origins-Pattern:: "origin=Debian,label=Debian-Security,archive=stable";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- /etc/apt/preferences --

Package: *
Pin: release n=testing
Pin-Priority: 600

Package: *
Pin: release n=unstable
Pin-Priority: 700

Package: *
Pin: release n=experimental
Pin-Priority: 500

#Package: ifupdown
#Pin: version 0.6.10
#Pin-Priority: 1001

#Package: wpasupplicant
#Pin: version 0.6.10-2.1
#Pin-Priority: 1001

Package: bash-completion
Pin: version 1:1.3-1
Pin-Priority: 1001


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

#deb ftp://ftp.fr.debian.org/debian/ testing main contrib non-free

deb ftp://ftp.fr.debian.org/debian/ unstable main contrib non-free
deb ftp://ftp.debian.org/debian/ unstable main contrib non-free

deb http://www.debian-multimedia.org/ unstable main

deb ftp://ftp.fr.debian.org/debian/ experimental main
deb ftp://ftp.debian.org/debian/ experimental main

#### Edmond's repository
#deb http://www.edmondweblog.com/repo/ binary/

-- System Information:
Debian Release: wheezy/sid
  APT prefers experimental
  APT policy: (500, 'experimental'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt depends on:
ii  debian-archive-keyring  2011.10.23
ii  gnupg                   1.4.11-3
ii  libapt-pkg4.12          0.8.16~exp8
ii  libc6                   2.13-24
ii  libgcc1                 1:4.7-20111231-1
ii  libstdc++6              4.7-20111231-1
ii  zlib1g                  1:1.2.5.dfsg-1

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc                      <none>
pn  aptitude | synaptic | wajig  <none>
pn  bzip2                        1.0.6-1
pn  dpkg-dev                     1.16.1.2
pn  lzma                         <none>
pn  python-apt                   <none>

-- no debconf information



Reply to: