From owner-freebsd-questions@FreeBSD.ORG Thu Jul 12 16:42:13 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E21C316A473 for ; Thu, 12 Jul 2007 16:42:13 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id B333A13C4BE for ; Thu, 12 Jul 2007 16:42:13 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from [192.168.125.134] ([192.168.125.134]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id l6CGgBZB061380 for ; Thu, 12 Jul 2007 11:42:11 -0500 (CDT) (envelope-from freebsd@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Thu, 12 Jul 2007 11:42:10 -0500 User-Agent: KMail/1.9.6 References: <200707120846.26845.freebsd@dfwlp.com> <20070712105343.60251d12.bsd-unix@earthlink.net> In-Reply-To: <20070712105343.60251d12.bsd-unix@earthlink.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707121142.10689.freebsd@dfwlp.com> X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on pollux.dfwlp.com Subject: Re: /usr/ports/packages cleanup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 16:42:14 -0000 On Thursday 12 July 2007 09:53:43 Randy Pratt wrote: > On Thu, 12 Jul 2007 08:46:26 -0500 > > Jonathan Horne wrote: > > my packages dir is starting to have more than a few packages of > > incrementing versions. example: > > > > [jhorne@athena All] $ ls kde-3* > > kde-3.5.6_1.tbz kde-3.5.7.tbz > > > > is there a simple way to clean the packages directory, and only keep the > > latest version of each package? > > I use "portsclean -P" to clean out /usr/ports/packages. Perhaps it > is what you're looking for. > > Randy well this is my build server as well as my workstation, so i have many packages that ive built that i require for my servers, that might not be installed on my workstation. portsclean -P would probably purge off a lot of things that i still need. if anything turns up at all, it will probably have to be some sort of shell script (of which i have almost 0 talen for). -- Jonathan Horne http://dfwlpiki.dfwlp.org freebsd@dfwlp.com