From owner-freebsd-questions@FreeBSD.ORG Mon May 26 13:39:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1AF837B401 for ; Mon, 26 May 2003 13:39:45 -0700 (PDT) Received: from ts46-02-qdr1144.ykma.wa.charter.com (ts46-02-qdr1144.ykma.wa.charter.com [66.189.198.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BEF443FA3 for ; Mon, 26 May 2003 13:39:41 -0700 (PDT) (envelope-from freebsd@happyjack.org) Received: by chris.spiegels (Postfix, from userid 1000) id 24975C2B32; Wed, 21 May 2003 22:45:38 -0700 (PDT) Date: Wed, 21 May 2003 22:45:38 -0700 From: Chris Spiegel To: freebsd-questions@freebsd.org Message-ID: <20030522054538.GA3087@midgard.spiegels> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Upgrading the base X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 20:39:46 -0000 It's inevitable that when upgrading FreeBSD, there will sometimes be old, leftover stuff in /usr. For example, I recently installed FreeBSD 4.8-RELEASE. I cvsup'd RELENG_4_8 and noticed that some kerberos stuff was updated. Now I have some old binaries (k5admin, kauth, etc) in /usr/bin. I installed the perl5 port, using use.perl to set the default perl to the port. I rebuilt the base with NOPERL set, and now there are old Perl binaries hanging around in /usr/bin, and various other Perl things around /usr. I'd like to know if there's a semi-easy way to figure out what stuff in /usr isn't up to date and can be removed. I can hack it by doing stuff like ls -l|grep -v "May 21" in /usr/bin, to see what stuff wasn't created at the last buildworld (which was today, the 21st of May for me). But this seems very ugly and can't be used automatically very easily because of things like /usr/home and /usr/local that are updated separately. Any tools out there to help clean up the cruft? Chris