[Aptitude-devel] Bug#402454: Bug#402454: aptitude: ~O definition and behaviour

Osamu Aoki osamu at debian.org
Wed Jan 9 12:59:02 UTC 2013


On Wed, Jan 09, 2013 at 10:41:17AM +0800, Daniel Hartwig wrote:
> On 9 January 2013 10:35, Daniel Hartwig <mandyke at gmail.com> wrote:
> >> Osamu Aoki wrote:
> >>> |    “!~v!~Odebian” will find non-virtual package versions which can not
> >>> |    trace their origin to debian using active /etc/apt/sources.list on
> >>> |    your system (packages not from the active Debian archive).
> > This example is indeed poorly constructed and could be repaired as
> > discussed.
> Excepting that the proposed text is also too verbose, especially
> with regards to mentioning sources.list.  What about:
> > ”!~v!?origin(debian)” will find packages that are not from the
> > Debian archive.  Note the use of ”!~v” to exclude virtual packages
> > from the result.
> +/- ”!~c” also.

Thanks for digging up my old bug report which I completely forgot about.

I agree there is no long discussion needed here for what implication
virtual package means.  But what is needed is clear concise ways to find
"non-debian source packages installed in the system" which is very
common activity to identify situation associated with problematic
local/PPA/multimedia packages.


This seems to be a very good example.

| ~O
|    Matches package versions whose origin matches the regular expression
|    origin. For instance, “!~c!~v!~Odebian” will find any unofficial 
|    packages on your system (packages not from the Debian archive). 

I certainly appreciate adding some reminder for virtual package not
having "version" somewhere but that is secondary importance.

By ihaving an exact example here, people will think:
 * virtual package complication (why add !~v)
 * non-purged configuration file issues (Why add !~c instead of ~i).


More information about the Aptitude-devel mailing list