Date: Thu, 4 Feb 1999 19:32:10 +0200 (SAST) From: Khetan Gajjar <khetan@chain.freebsd.os.org.za> To: root@isis.dynip.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Greg Lehey's Brains WANTED :-) Message-ID: <Pine.BSF.4.05.9902041928040.76837-100000@chain.freebsd.os.org.za> In-Reply-To: <199902041502.SAA03963@isis.dynip.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 4 Feb 1999 root@isis.dynip.com wrote: > I am currently Nuking aout stuff from my system, and reinstalling the > ports, etc. I need some script to traverse the whole system searching > for aout libs, and binaries, and write their path to a file so I can > figure out where they are burried. Assuming you've done nothing non-standard, and have always used ports and packages to install things, then /var/db/pkg/ contains a directory named the package/port name, and inside is a +CONTENTS file which includes the files installed (hopefully). You can just pkg_delete <pkg_name> to delete the package. If you've done a make-aout-to-elf or installed 3.0 or above, then everything in /bin, /sbin, /usr/sbin, /usr/bin and /usr/include should be ok. The "problem" lies in /usr/local/bin, /usr/local/sbin, /usr/local/lib, /usr/X11R6/lib and /usr/X11R6/bin. For the non-standard installed binaries, you can do some sort of file to see if it's ELF or not. The libraries at least are fairly easy to locate - look for a aout directory. --- Khetan Gajjar (!kg1779) * khetan@iafrica.com ; khetan@os.org.za http://www.os.org.za/~khetan * Talk/Finger khetan@chain.freebsd.os.org.za FreeBSD enthusiast * http://www2.za.freebsd.org/ Security-wise, NT is a OS with a "kick me" sign taped to it To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9902041928040.76837-100000>