LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Aptitude: "join" on search terms (https://www.linuxquestions.org/questions/debian-26/aptitude-join-on-search-terms-772493/)

gsakkis 11-30-2009 01:30 PM

Aptitude: "join" on search terms
 
I want to find all packages installed from the testing archive, so I try:
Code:

aptitude search '?installed ?archive(testing)'
As it turns out, this returns every package P that is installed and is included in testing, regardless of whether the installed package actually comes from testing. E.g. bash will appear in the result list even if the installed version comes from stable, because (some other version of) bash is also in testing.

Another example: find all packages with a version that depends on two (or more) given packages, say libcairo2 and libqtcore4. Running
Code:

aptitude search '?depends(libqtcore4) ?depends(libcairo2)'
returns vlc among the results, although vlc/stable doesn't depend on libqtcore4 and vlc/testing doesn't depend on libcairo2 (and sources.list contains only stable and testing).

Is this possible with aptitude (and how) ?

the trooper 11-30-2009 01:46 PM

Quote:

I want to find all packages installed from the testing archive
Ok,you'll need to install apt-show-versions,so just simply:

Code:

aptitude install apt-show-versions
Followed by:

Code:

apt-show-versions | grep testing
For the second question you could try:

Code:

apt-cache rdepends libqtcore4
Quote:

sources.list contains only stable and testing
I take it you know mixing Testing and Stable is not advised?.

gsakkis 11-30-2009 03:12 PM

Quote:

Originally Posted by the trooper (Post 3774707)
Ok,you'll need to install apt-show-versions,so just simply:

Well I was more interested for a general way to do SQL-like joins with aptitude rather than ad-hoc ways to answer these two specific examples (though that was handy too, thanks).

Quote:

Originally Posted by the trooper (Post 3774707)
I take it you know mixing Testing and Stable is not advised?.

I do but it's for my laptop, not some mission critical server; for some reason I have issues with v2.6.3x kernels and Xorg 7.4 so I am running Mepis for now and handpick a few packages (+dependencies) from Testing if the Stable versions don't quite cut it.


All times are GMT -5. The time now is 06:08 AM.