[PLUG] ls listing with apt package column

Bill Barry bill at billbarry.org
Fri Dec 10 19:16:35 UTC 2010


On Fri, Dec 10, 2010 at 12:31 AM, Daniel Hedlund <daniel at digitree.org>
wrote:
>Someone posted a script on FSLint's issue tracker that sounds like it
>does what you want:
>http://code.google.com/p/fslint/issues/detail?id=46

On Fri, Dec 10, 2010 at 9:46 AM, Paul Mullen <pm at nellump.net> wrote:

> "dpkg -S" does that.  It'll produce the package that any file argument
> may have come from.  You can use shell globbing to feed it an entire
> directory's worth of files.
>
>

Both of these almost do the trick! The find-cruft script gives a system wide
list of files with no obvious package origin and dpkg -S /usr/bin/* will do
the same on a per directory/file glob level. The one thing they are not
doing is looking at /etc/alternatives. For instance the package
xtightvncviewer created the following softlinks
/usr/bin/vncviewer -> /etc/alternatives/vncviewer
and
/etc/alternatives/vncviewer -> /usr/bin/xtightvncviewer

The package origin of these soft links are not reported, but it might be
possible to add that ability to the find-cruft script.

Thanks,
Bill



More information about the PLUG mailing list