where to put such a script?...
Sunday, 9. March 2008, 19:01:53
$ notAptable --help
notAptable [--version] [--help] [-s/var/lib/dpkg/status] [-aptf/path/to/aptavail/equiv/file] [-aptx'apt-cache dumpavail'] [-ipackagename]
List packages which are installed on the system but are not known by apt.
Options:
-s Path to file to use when grepping for installed packages
-aptf Path to file to use when grepping for the apt-able packages
-aptx Same as above but instead of being a file the specified command is executed
-i Exclude a package that would otherwise be listed
When not overriden by an option the default files/data is up to grep-dctrl's defaults
This script is said to report packages that were removed from the archive
(except those listed in /home/raphael/.listNotAptable.ignore)
Copyright 2008 by Raphael Geissert <atomo64@gmail.com>
With this simple script I wrote I got rid of about 45 packages (libraries, programs, etc, etc) what are no longer in the archive.
My question is: on what package should this script be shipped? debian-goodies? devscripts?
Hope somebody else finds this script useful and puts it in their weekly cronjob as I did
Get it from http://alioth.debian.org/~atomo64-guest/notAptable until it is shipped in some package.









Anonymous # 9. March 2008, 19:52
Uhm, this functionality is already part of aptitude (under "Obsolete and Locally Created Packages").
Anonymous # 9. March 2008, 19:56
Either of those two packages seems like a reasonable location. On the one hand, debian-goodies seems less specific to package development; on the other hand, devscripts seems more broadly known and used. Either way, I'd love to use the script. I use aptitude for the same purpose, but I'd like to have a command-line tool to give me that information, and I'd like to know how you managed it.
Anonymous # 9. March 2008, 20:08
Replying to Anonymous: the command-line form in aptitude is "aptitude search '~o'".
Anonymous # 9. March 2008, 21:21
Also check out: aptitude search ~S~i\!~Odebian
Anonymous # 9. March 2008, 21:59
One standard pattern that should probably be omitted (either by default or with a single option that ignores all matches) is /-cross$/ because when cross-building, the hundreds of -cross packages obscure all other results.
atomo64 # 29. May 2008, 23:28
Just saw your comment.
All you have to do is
and you are done
egrep is used to process whatever is in $HOME/listNotAptable.ignore, so you can play with it. E.g. prc-tools-?(arm|m68k|utils)?