2

How can I list all package names and their versions available from a specific package source (official repositories, PPAs or other repositories) ?

Also, how can I filter only the installed packages from that list?
If one version of a package is available from the queried source, but the installed version is from anywhere else, it should not appear in the output.

Byte Commander
  • 105,631
  • 46
  • 284
  • 425
  • 2
    You've done it again! This is like the 3rd time you've posted a question I've been meaning to post for a while! :D –  May 10 '16 at 19:30
  • Not sure about the first question but for the last question [this](http://askubuntu.com/q/729192/462484) might help. – 7_R3X May 10 '16 at 19:35
  • @7_R3X No, I don't care to which version a package would get upgraded, I only want to get a list of packages that is currently installed from a specific software source. – Byte Commander May 10 '16 at 19:36
  • @ByteCommander : How about you comment all other repos in source.list, `apt-get update` and then `apt-cache dump` ? It should work as dump lists all the packages available. Not sure though. – 7_R3X May 10 '16 at 20:00
  • 3
    Possible duplicate of [How can I list all packages I've installed from a particular PPA?](http://askubuntu.com/questions/5976/how-can-i-list-all-packages-ive-installed-from-a-particular-ppa) – muru May 10 '16 at 20:26
  • Also, probably: http://serverfault.com/questions/138546/in-ubuntu-linux-how-do-i-list-packages-installed-from-the-universe-repository, http://superuser.com/questions/132346/find-packages-installed-from-a-certain-repository-with-aptitude – muru May 10 '16 at 20:29
  • @muru: Yes, I thought this question looked familiar! I think I didn't ask myself because I found those. –  May 10 '16 at 21:48
  • 1
    @muru: Your linked question only deals with *installed* packages from that source, not *all* packages available from it. – David Foerster May 12 '16 at 14:53
  • @DavidFoerster the command line methods are rather easily extended. – muru May 12 '16 at 15:49
  • How about `apt list --installed | grep wily-security` ? – Ron May 14 '16 at 14:34

0 Answers0