In <[🔎] 4d2aaa20.ca7a0e0a.49e1.3917@mx.google.com>, Sthu Deus wrote: >Andrei wrote: >> $ apt-cache policy >> [snip] >> >> 1 http://www.backports.org lenny-backports/main Packages >> >> release o=Debian Backports,a=lenny-backports,l=Debian >> >> Backports,c=main origin www.backports.org >> [snip] >> >> The correct origin is "Debian Backports" according to o=... > >Yea, right. But can You show the command line for the aptitude? >I have tried this: > >/usr/bin/aptitude search ~O 'Debian Backports' This calls aptitude with 3 arguments: "search" "~O" and "Debian Backports" >/usr/bin/aptitude search ~O Debian\ Backports Same thing. >/usr/bin/aptitude search ~O Debian Backports This calls aptitude with 4 arguments: "search" "~O" "Debian" and "Backports" >- all returned same bunch of packages that lets me think I have not > achieved my goal. I think you want: aptitude search '~O"Debian Backports"' This calls aptitude with 2 arguments: "search" and ~O"Debian Backports". (aptitude has no control over your shell, so you'll need to learn how to quote things in your shell before you can even properly communicate with aptitude.) When aptitude has the search action chosen and is given multiple search terms, it logically OR's them, which is not what you want, particularly the search term of '~O'. (aptitude search gnome kde) finds package with names containing either 'gnome' or 'kde'. Within a search term, ' ' is the same as '&' and performs a logical AND of two sub-terms. However, ' ' is not treated that way inside a quoted string, which is indicated by the double-quote characters '"'. '~ODebian Backports' looks for something with an origin of 'Debian' AND having "Backports" in the package name. '~O"Debian Backports"' looks for something with an origin of 'Debian Backports'. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
Attachment:
signature.asc
Description: This is a digitally signed message part.