From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 17:34:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from straylight.ringlet.net (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with SMTP id 7E1401065676 for ; Wed, 11 Jun 2008 17:34:14 +0000 (UTC) (envelope-from roam@ringlet.net) Received: (qmail 74299 invoked by uid 1000); 11 Jun 2008 17:33:58 -0000 Date: Wed, 11 Jun 2008 20:33:57 +0300 From: Peter Pentchev To: Novembre Message-ID: <20080611173357.GB70741@straylight.m.ringlet.net> References: <3b47caa90806102209w5161d96cjdd41d55f0315429c@mail.gmail.com> <20080611054125.GA15965@eos.sc1.parodius.com> <20080611073108.GA1184@straylight.m.ringlet.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K8nIJk4ghYZn606h" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Jeremy Chadwick , 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 17:34:15 -0000 --K8nIJk4ghYZn606h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 11, 2008 at 01:40:19PM +0100, Florent Thoumie wrote: > On Wed, Jun 11, 2008 at 8:31 AM, Peter Pentchev wrote: > > On Tue, Jun 10, 2008 at 10:41:25PM -0700, Jeremy Chadwick wrote: > >> 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. > > > > Not really. This is a bit dangerous. > > > > The dangerous part is "the mtime of the directory". It would be much > > better to use the mtime of the +CONTENTS file, since it never changes > > *after* the package has been installed. >=20 > It actually does if you're using portupgrade (and probably > portmaster), see the @pkgdep entries. >=20 > Use +DESC, +COMMENT or +MTREE_DIRS instead. Yep. Sorry. Any of those would be a better candidate. I'd simply forgotten about port management tools modifying the dependencies in-place. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 Thit sentence is not self-referential because "thit" is not a word. --K8nIJk4ghYZn606h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhQDIUACgkQ7Ri2jRYZRVNGdgCdE8yb+RweUdUC1LIQlm5wKugQ bboAn0wbO/4xz4QVEfJp1Ldxov1TywY8 =DQ0b -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h--