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. |