How to tell which repositories provide which packages?
Ralf Mardorf
kde.lists at yahoo.com
Thu Jan 7 08:03:02 UTC 2021
On Thu, 2021-01-07 at 08:49 +0100, Ralf Mardorf via ubuntu-users wrote:
> A workaround:
>
>
> [weremouse at moonstudio ~]$ apt-cache policy $(awk '$1 == "Package:" { print $2 }' /var/lib/apt/lists/*obsproject*i386_Packages)|grep -v "(none)"|grep "Installed: " -B1 -A4
> obs-studio:
> Installed: 25.0.8-0obsproject1~xenial
> Candidate: 25.0.8-0obsproject1~xenial
> Version table:
> *** 25.0.8-0obsproject1~xenial 500
> 500 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial/main amd64 Packages
>
>
> It does check *i386_Packages of the PPA, but the output shows
> "xenial/main amd64 Packages", so the user needs to verify it, by using
> grep with the "-A" option.
Just that -A4 probably should become -A400000000000000000000000
[weremouse at moonstudio ~]$ apt-cache policy audacious
audacious:
Installed: 3.10-1~webupd8~xenial0
Candidate: 3.10-1~webupd8~xenial0
Version table:
*** 3.10-1~webupd8~xenial0 500
500 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
3.6.2-2 500
500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
The package is provided by a i386 and amd64 PPA, as well as by an
official amd64 repo. If it would be installed by the official repo, our
search still would claim it's also installed by the i386 and amd64 PPA.
IOW the user needs to verify that the same package isn't provided by
probably hundreds of PPAs as well as by an official repository.
More information about the ubuntu-users
mailing list