CRUX : Home

Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About

Back to wiki start page

Which files are disowned by CRUX package manager?

Author: Spoofing <spoofing@spfng.com>

1. Get the all known files

# for pkg in $(prt-get listinst); do pkginfo -l $pkg; done | sort -u > /tmp/db

2. Get the all filesystem files with some exceptions (i.e. /home, /usr/ports)

# cd /
# find * \( -type d -printf '%p/\n' -o -print \) | \
  egrep -v "^(lost\+found|proc|sys|dev|run|tmp|root|home|boot|lib/firmware|lib/modules|usr/ports)" | \
  sort > /tmp/fs

3. And show differents

# comm -23 /tmp/fs /tmp/db | less

Maybe you want to have a clean system, and just can remove some garbage files.