85

is there a command to see what packages are available from a certain ppa repository?

63

Simple:

grep ^Package: /var/lib/apt/lists/ppa.launchpad.net_*_Packages 

Or more flexible:

grep-dctrl -sPackage . /var/lib/apt/lists/ppa.launchpad.net_*_Packages 

For fancier querying, use apt-cache policy and aptitude as described here:

aptitude search '~O LP-PPA-gstreamer-developers'
  • Use xzcat /var/lib/apt/lists/ppa.launchpad.net_*_Packages.xz | grep '^Package:' if that package file is compressed. – randomness Mar 21 at 18:24
18
grep Package /var/lib/apt/lists/(repo name)_Packages
6

I don't know if this is what you're looking for:

https://superuser.com/questions/132346/find-packages-installed-from-a-certain-repository-with-aptitude

Like it says, Synaptic Package Manager allows you to search by "origin". This isn't programmatic, but it should give you what you're looking for.

2

Old thread, but thought it might help. Use awk, sort and uniq to grab only the packages and discard the Package repo checksums.

grep ^Package /var/lib/apt/lists/<repo you are interested in>* | awk '{print $2}' | sort | uniq

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.