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

Bug#690950: apt-get dumpavail does not print all versions



On Fri, Oct 19, 2012 at 2:54 PM, Joachim Breitner <nomeata@debian.org> wrote:
> I am searching for a command that gives me _one_ Packages file with all
> packages that apt-get has access to. apt-cache dumpavail looked good,
> but does not include versions of packages in experimental if there is
> also a version in unstable:
[…]
> This is not documented and there seems to be no way to get the desired
> result.

It is implicitly documented if you know that dpkg/dselect use in their
available file only one version -- that is why we print only the candidate,
so this is not a issue with experimental, but a general only one version
per architecture for a package.

Why do you need that information? And why is simple cat'ing the Packages
files in /var/lib/apt/lists together not an option? (okay, not failsafe,
as it will not work with file:///, but beside that it should be fine)

I guess it should be easy to get it with some lines out of python-apt or
with "misusing" EDSP (apt-get dist-upgrade -s --solver=dump) which has
a similar format. Both should be faster than: apt-cache show .*
(if multi-arch is involved, you have to say .*:arch1 .*:arch2 …
 as arch globing doesn't work yet if we deal with packagename regexes)

Depends a bit on how and why you need that info at all though.


Best regards

David Kalnischkies


Reply to: