From owner-freebsd-current@FreeBSD.ORG Mon Oct 11 16:01:32 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3353C16A4CE for ; Mon, 11 Oct 2004 16:01:32 +0000 (GMT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ACB143D2D for ; Mon, 11 Oct 2004 16:01:32 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) i9BG1VvA084871; Mon, 11 Oct 2004 09:01:31 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id i9BG1VE1084870; Mon, 11 Oct 2004 09:01:31 -0700 (PDT) (envelope-from dillon) Date: Mon, 11 Oct 2004 09:01:31 -0700 (PDT) From: Matthew Dillon Message-Id: <200410111601.i9BG1VE1084870@apollo.backplane.com> To: Kirk Strauser References: <200410111004.05203.kirk@strauser.com> cc: freebsd-current@freebsd.org Subject: Re: How to safely clean out /lib, /usr/lib? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 16:01:32 -0000 :=20 :installworld and deleted all commands more than a month old or so, the=20 :logic being that any commands not updated by world are remnants that can be= :=20 :purged. Is that a reasonable assumption? :=2D-=20 :Kirk Strauser I would also check the last access time of the libraries in question as a failsafe. (note: the actual libraries, not the softlinks whos access times are not updated by the system). cd /usr/lib ls -ltua (this assumes you don't use 'tar' or 'cp' to backup your system, which would skew the results, and that you haven't already blown it by doing something right aweful in /usr/lib to open and read all the files :-). This also assumes that you are not using the 'noatime' mount flag for /usr). You can see whether a library is actually being used or not by looking at the last-accessed date (ls -u). Or maybe run all your favorite applications first, exit them (so mmap accesses are updated properly), *then* check the last accessed dates on the libraries. -Matt Matthew Dillon