LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-30-2009, 01:30 PM   #1
gsakkis
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
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) ?

Last edited by gsakkis; 11-30-2009 at 01:33 PM.
 
Old 11-30-2009, 01:46 PM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
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?.
 
Old 11-30-2009, 03:12 PM   #3
gsakkis
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by the trooper View Post
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 View Post
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.
 
  


Reply

Tags
aptitude


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
locating packages held with "aptitude hold <packagename>" farslayer Debian 3 12-01-2008 09:56 AM
Aptitude giving error after "apt-get update" ciden Linux - Software 6 03-22-2008 03:53 AM
LXer: Beginners Linux: "Forget Laymans terms, DO YOU SPEAK ENGLISH?" LXer Syndicated Linux News 0 04-17-2007 05:46 PM
Apply "Advanced Search" options to "My LQ" searches PTrenholme LQ Suggestions & Feedback 22 03-10-2007 08:30 AM


All times are GMT -5. The time now is 11:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration