How to tell which repositories provide which packages?
Little Girl
littlergirl at gmail.com
Tue Jan 5 21:59:40 UTC 2021
Hey there,
Chris Green wrote:
>These are all the wrong way round though. I don't know the package
>names, I want to know if (for example) if any packages have been
>installed from:-
> http://ppa.launchpad.net/vincent-vandevyvre/vvv/ubuntu
Whoops. My mistake. Here you go. I found this page:
https://askubuntu.com/questions/43581/how-to-list-packages-from-a-ppa-source-in-command-line
By following the steps in the first solution that the OP was offered,
I was able to come up with this example that shows me all packages
installed by the Vivaldi PPA on my system (note that this is a
one-line command, but it might wrap at your end):
awk '$1 == "Package:" { print
$2 }' /var/lib/apt/lists/repo.vivaldi*Packages
You'll need to go take a look in the /var/lib/apt/lists directory and
find all entries that contain your PPA name and end in "Packages".
Then edit the above command with a wildcarded path to that or those.
This might work, but I'm guessing at how the PPA is listed:
awk '$1 == "Package:" { print
$2 }' /var/lib/apt/lists/repo.vincent-vandevyvre*Packages
Or perhaps this might work:
awk '$1 == "Package:" { print
$2 }' /var/lib/apt/lists/repo.vincent*Packages
I don't have that PPA, so when I try to run either of those last
two commands, I get a fatal awk warning that the file or directory
doesn't exist. Your mileage may vary.
Also, there's more than one solution on that page, so if you'd prefer
something different, see what you think of the others.
--
Little Girl
There is no spoon.
More information about the ubuntu-users
mailing list