From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 05:41:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB7411065673; Wed, 11 Jun 2008 05:41:25 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id B46778FC15; Wed, 11 Jun 2008 05:41:25 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 95B451CC060; Tue, 10 Jun 2008 22:41:25 -0700 (PDT) Date: Tue, 10 Jun 2008 22:41:25 -0700 From: Jeremy Chadwick To: Novembre Message-ID: <20080611054125.GA15965@eos.sc1.parodius.com> References: <3b47caa90806102209w5161d96cjdd41d55f0315429c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3b47caa90806102209w5161d96cjdd41d55f0315429c@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Questions , freebsd-ports@freebsd.org Subject: Re: how to determine the date a port is installed 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: Wed, 11 Jun 2008 05:41:25 -0000 On Wed, Jun 11, 2008 at 12:09:33AM -0500, Novembre wrote: > Two questions: > 1) Is it possible to determine the date a port/package is installed? ls -ld /var/db/pkg/, use the mtime of the directory. > 2) How can I delete all the ports/packages installed after a certain date? Use a combination of find with the -mtime flag, and pkg_delete. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |