[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian- System entrümpeln?



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/



Reply to: