[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to list packages in various priorities or sections



On Mon, Apr 5, 2010 at 6:14 PM, Mike Viau <viaum@sheridanc.on.ca> wrote:
> Mon, 5 Apr 2010 17:47:36 -0400 <tomh0665@gmail.com> wrote:
> > On Mon, Apr 5, 2010 at 5:28 PM, Mike Viau <viaum@sheridanc.on.ca> wrote:
> > > I have used aptitude show $(package_name) to list the details of a given
> > > package.
> > >
> > > In the output of the vlan package for example one gets output like:
> > >
> > > Priority: extra
> > > Section: misc
> > >
> > > How might one determine all packages (installed or not) that fall under a
> > > particular "Priority" or "Section" ?

> > aptitude search ~s<section>
> > aptitude search ~p<priority>

> Thanks for the tip. I noticed ~p works with all but the essential priority for some reason.
>
> With your tip I was able to find this link:
> http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03s05.html#tableSearchTermQuickGuide
>
> I noticed how terms might be ANDed together but I would appreicated a working example of this.
>
> ?and(term1, term2) term1 term2 Select any package that matches both term1 and term2.
>
> Both "aptitude search ~pextra ~smisc" and "aptitude search ~pextra search ~smisc" resulted in a list of package which did not necessarily meet both the search patterns specified.

You're welcome.

That table is misleading because it does not point out that you have
to escape spaces and parentheses, so
aptitude search '~pextra ~smisc'
aptitude search ~pextra\ ~smisc
will work


Reply to: