You are not logged in.

#1 2005-05-19 20:26:20

cmp
Member
Registered: 2005-01-03
Posts: 350

Unowned files

Hi, Is there a fast way to find all files not owned by a package?
My solution takes ages:
find / -mount -type f -exec pacman -Qo {} ; 2> /home/police/tmp/flist > /dev/null

Offline

#2 2005-05-19 20:41:08

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: Unowned files

Something like the following should be slightly faster:

cd /tmp
pacman -Ql | sed -e 'sx.* xx' | sort > /tmp/pac-list
find / | sort > find-list
diff -U 1 find-list pac-list

Offline

Board footer

Powered by FluxBB