[PLUG] ls listing with apt package column

chris (fool) mccraw gently at gmail.com
Fri Dec 10 22:23:05 UTC 2010


On Fri, Dec 10, 2010 at 11:16, Bill Barry <bill at billbarry.org> wrote:
> 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.

so, run either one of those options and retain the list of files that
are not owned by any package.  before cleaning them up, see if they
are symlinks into /etc/alternatives (which, one supposes, you have not
mucked around in--only packages you've installed would have done so,
unless you ran update-alternatives manually or something).  if so,
assume good.  if no, examine further and/or delete.  it's not
perfectly programmatic, but i'd probably do something like:

                 cat list_of_unowned_files | xargs ls -l | grep -v
/etc/alternatives

which would put you where you asked to be =)



More information about the PLUG mailing list