On Wed, 11 Jun 2008 10:31:08 +0300 Peter Pentchev <[EMAIL PROTECTED]> 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/<port>, 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 file, since it never changes > *after* the package has been installed. +CONTENTS can change if you use a tool like portmaster or portupgrade If you have portupgrade installed, pkg_glob can list packages installed before a specific date, so presumably pkg_deinstall can delete them directly since it support package globs. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"