From owner-freebsd-questions Thu Feb 4 09:32:48 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA20941 for freebsd-questions-outgoing; Thu, 4 Feb 1999 09:32:48 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from chain.freebsd.os.org.za (chain.freebsd.os.org.za [196.7.74.174]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA20914 for ; Thu, 4 Feb 1999 09:32:34 -0800 (PST) (envelope-from khetan@chain.freebsd.os.org.za) To: (original recipient in envelope at chain.freebsd.os.org.za) X-Disclaimer: Contents of this e-mail are the writer's opinion X-Disclaimer2: and may not be quoted, re-produced or forwarded X-Disclaimer3: (in part or whole) without the author's permission. Received: from localhost (khetan@localhost) by chain.freebsd.os.org.za (8.9.2+3.1W/8.9.2/smtpfeed 0.91) with ESMTP id TAA92328; Thu, 4 Feb 1999 19:32:11 +0200 (SAST) (envelope-from khetan@chain.freebsd.os.org.za) Date: Thu, 4 Feb 1999 19:32:10 +0200 (SAST) From: Khetan Gajjar Reply-To: Khetan Gajjar To: root@isis.dynip.com cc: freebsd-questions@FreeBSD.ORG Subject: Re: Greg Lehey's Brains WANTED :-) In-Reply-To: <199902041502.SAA03963@isis.dynip.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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