Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cleaning out my world file
Date: Fri, 15 Aug 2008 20:07:17
Message-Id: 1218830833.31126.6.camel@localhost
In Reply to: Re: [gentoo-user] Cleaning out my world file by Dale
1 On Fri, 2008-08-15 at 08:38 -0500, Dale wrote:
2 > Alan McKinnon wrote:
3 > > On Friday 15 August 2008 14:36:58 Dale wrote:
4 > >
5 > >
6 > >> Somewhat still on the same subject since I am still cleaning. Anyway to
7 > >> clean out unneeded files in /etc? I'm thinking about files that may be
8 > >> there but the programs are no longer installed. I read the man page for
9 > >> dep but didn't see anything. Dang thing does a lot tho.
10 > >>
11 > >
12 > > You could use the very long way round, something based on this:
13 > >
14 > > find /etc/ -type f -exec equery belongs {} \;
15 > >
16 > > then leave it alone for an hour or three
17 > >
18 > >
19 >
20 > Hmmmm, I had to stop that after a few minutes. It sort of took away
21 > from my folding. Pushed my CPU to about 80% or so.
22 >
23 > There has to be a tool for this too. Gentoo has about everything else.
24
25 I do a similar thing every month as a cron job. It' runs at night so I
26 just get an email the next day.
27
28 --
29 #!/bin/bash
30
31 # Print out orphan files in specified directories
32
33 find /etc -xdev -type f -print|xargs qfile -o
34 find /usr -xdev \( -path /usr/src -prune \) -o -type f -not -name
35 '*.pyc' \
36 -not -name '*.pyo' -not -name .keep -print | \
37 xargs qfile -o
38 find /lib -xdev \( -path /lib/modules -prune \) -o -type f |xargs qfile
39 -o

Replies

Subject Author
Re: [gentoo-user] Cleaning out my world file Dale <dalek1967@×××××××××.net>
[gentoo-user] Re: Cleaning out my world file Francesco Talamona <ti.liame@×××××.it>