Bug#948445: release-notes: aptitude search for not-from-Debian package has false negatives
Andrei POPESCU wrote:
> Based on this the shortest form would be:
>
> aptitude search '~S~i~ODebian'
Hang on, that's "installed and Debian"; we want "and non-Debian":
aptitude search '~S~i!~ODebian'
> or long form:
>
> aptitude search '?narrow(?installed, ?not(?origin(Debian)))'
>
> (tested on a system with locally compiled packages, but no non-Debian
> packages and on a system with non-Debian packages and no locally
> compiled packages).
>
> The long form is quite self-explanatory, the short form is easier to
> type.
>
> Maybe both should be mentioned?
Remember it's currently
Below there are two methods for finding installed packages that did
not come from Debian, using either aptitude or apt-forktracer. Please
note that neither of them are 100% accurate (e.g. the aptitude example
will list packages that were once provided by Debian but no longer
are, such as old kernel packages).
$ aptitude search '~i(!~ODebian)'
$ apt-forktracer | sort
Adding a second version of the aptitude search would mean breaking it
up with a bit of extra explanation. I'd stick to one version, but I
don't know which I'd vote for.
Incidentally, I've always been slightly annoyed by that claim that
"aptitude search" isn't 100% accurate. Given that the point of
section 4.2 is to check that you're running pure Debian updated to the
latest stable point release, the fact that it tells you about legacy
kernels seems like a feature, not a bug.
--
JBR with qualifications in linguistics, experience as a Debian
sysadmin, and probably no clue about this particular package
Reply to: