List Info

Thread: removing xfree86




removing xfree86
user name
2006-11-01 05:03:07
Salut,

On Tue, Oct 31, 2006 at 08:45:50PM -0600, Matthew Wala
wrote:
> What relationship do the source files in /usr/src/x11
have to /usr/xsrc?

They're the OS bindings as far as I remember.

> What is the quickest way to remove Xfree86, and all
ports which require it?

For the packages:

for pkg in `pkg_info | awk '{ print $1 }'`
do
	libs=`pkg_info -B "$pkg" | grep REQUIRES= | sed
-e's/^REQUIRES=//g'`
	
	for lib in $libs
	do
		if echo $lib | grep -q '^/usr/X11R6/'
		then
			pkg_delete -r "$pkg"
		fi
	done
done

For XFree86:

cd /
cat /etc/mtree/set.x* | xargs rm -f

				Tonnerre
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )