Skip navigation.

Raphael's Blog

A look into a programmer's life

where to put such a script?...

,

$ 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 :smile:
Get it from http://alioth.debian.org/~atomo64-guest/notAptable until it is shipped in some package.

"stress"-testing shell interpreters...Earth Hour 2008 online

Comments

Anonymous 9. March 2008, 19:52

Florian Weimer writes:

Uhm, this functionality is already part of aptitude (under "Obsolete and Locally Created Packages").

Anonymous 9. March 2008, 19:56

Anonymous writes:

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

Daniel Burrows writes:

Replying to Anonymous: the command-line form in aptitude is "aptitude search '~o'".

Anonymous 9. March 2008, 21:21

Sam Morris writes:

Also check out: aptitude search ~S~i\!~Odebian

Anonymous 9. March 2008, 21:59

Neil Williams writes:

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

One standard pattern that should probably be omitted (either by default or with a single option that ignores all matches) is /-cross$/


Just saw your comment.
All you have to do is
echo ".*cross" >> $HOME/listNotAptable.ignore

and you are done :smile:

egrep is used to process whatever is in $HOME/listNotAptable.ignore, so you can play with it. E.g. prc-tools-?(arm|m68k|utils)?

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies