Gentoo Archives: gentoo-dev

From: "leon j. breedt" <ljb@×××××××××.org>
To: gentoo-dev@g.o
Subject: [gentoo-dev] orphaned files on system?
Date: Wed, 16 Apr 2003 23:41:47
Message-Id: 20030417114112.GA27271@jeddah.neverborn.ORG
1 hi,
2
3 i use the attached script to scan for unpackaged files on my filesystem,
4 and found quite a few in /etc, /usr/lib, /usr/X11R6 as well as the
5 expected places. most of them were symlinks, the intention being fairly
6 obvious (like the NVIDIA OpenGL stuff).
7
8 but i was hoping someone could explain why files like /etc/make.conf, /etc/csh.env,
9 /etc/env.d/05gcc and /usr/include/awk/acconfig.h didn't belong to any package.
10
11 i run the script with:
12
13 $ ./gtfilelint -v -C gtfilelint.conf -o orphans.list
14
15 use -h to see available params. multiple -v increases verbosity.
16
17 if you have a system with lots of packages, its going to take some time,
18 as it caches all the /var/db/pkg/**/CONTENTS entries in a Berkeley hashdb
19 for quick lookups, then runs /usr/bin/find on /, and compares results. exclusions
20 to the find output are made by adding python re module regexes to
21 gtfilelint.conf.
22
23 if you run it as user, you may get some error output from find about permissions.
24 you will want to specify a config file, otherwise you'll get a lot of stuff
25 you probably don't care about.
26
27 hope someone finds this useful
28
29 leon
30
31 --
32 in the beginning, was the code.

Attachments

File name MIME type
gtfilelint text/plain
gtfilelint.conf text/plain

Replies

Subject Author
Re: [gentoo-dev] orphaned files on system? Daniel Armyr <daniel.armyr@××××.se>
Re: [gentoo-dev] orphaned files on system? Evan Powers <powers.161@×××.edu>