I'm in search for something analog to this question: Zypper: How do I display all packages from a certain repository?
Since I'm on Ubuntu, I need an aptitude based solution: How can I get a list of installed packages from a certain repository?
|
I'm in search for something analog to this question: Zypper: How do I display all packages from a certain repository? Since I'm on Ubuntu, I need an aptitude based solution: How can I get a list of installed packages from a certain repository?
| |||
|
feedback
|
|
After reading info page of aptitude and a dozen of attempts, I finally got this :
or (equivalent) :
It will search packages installed from unstable archives of any repository. You have to filter out packages from your default archive (testing in above example). If you want to filter packages installed from www.debian-multimedia.org/unstable :
You get archive, origin, etc. for each repository from apt-cache policy command, on the release lines. | |||
|
feedback
|
|
Whoa, it's so trivial (at least on Ubuntu desktop systems). Use Synaptic! Then, in the left column, you can filter packages by their origin. However, there must be a CLI way, too. I update the answer, if I find it (as long as anyone else posted it before). | |||
feedback
|
|
Examine the origin tag (such as o=Debian) for each of your current repositories:
Then search for packages from (or not from) a particular origin:
This is not suitable for a security audit because it relies on each repository to provide its own origin information, but it might be helpful for troubleshooting the origin of packages that are present in multiple repositories. | |||
|
feedback
|
|
I tried to look up how to list all packages from a specific repository, but I'm not familiar enough with how apt works to figure it out. Once you find a list of all packages from a specific repository, however, you can put the names of all the packages in a file named
to list all the installed packages out of that list. Sorry I couldn't be of more help. | |||
feedback
|
|
I've found this :
List of search terms supported by "aptitude search". http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03s05.html#tableSearchTermQuickGuide | |||
feedback
|
|
You can use this
The search will filter all packages from the given origin (in this case the debian-multimedia repo) and will print out just the package name, then upgrade just those packages. To get the origin, I had to check the Release file from the repository (first line in the file). | |||
|
feedback
|