On Sun, Mar 05, 2006 at 11:20:40PM +0100, Andreas Pakulat wrote:
> On 05.03.06 22:37:41, Tim Boneko wrote:
> > Gibt es ein Tool, dass Dateien aufspürt, die zu keinem Paket gehören?
> 
> Du koenntest was mit dpkg -L <paketname> und dpkg -l, sowie find
> basteln. So ungefaehr:
> 
> dpkg -l | cut -f2 | while read paket ; do 
>   dpkg -L "$paket" >> /tmp/dateiliste
> done
> 
> find /usr /bin /sbin /etc /boot /var -type f | while read file; do
>   if ! grep "$file" /tmp/dateiliste ; then
>     echo $file does not belong to a package
>   fi
> done
> 
> bzgl. der if-Syntax bin ich nicht sicher, bitte mal selbst in man bash
> schauen. Ach und find solltest du vllt. nicht ueber /var/cache,
> /usr/local und /var/lib/mysql laufen lassen...

Oder man macht es sich einfach und benutzt "cruft".

apt-cache show cruft

apt-get install cruft


Cheers,
Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/


-- 
Haeufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)

Antwort per Email an