From owner-freebsd-questions@FreeBSD.ORG Thu May 18 02:51:53 2006 Return-Path: X-Original-To: questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9516216A400; Thu, 18 May 2006 02:51:53 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A15543D48; Thu, 18 May 2006 02:51:53 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k4I2plkw017471; Wed, 17 May 2006 21:51:47 -0500 (CDT) (envelope-from dan) Date: Wed, 17 May 2006 21:51:47 -0500 From: Dan Nelson To: "Greg 'groggy' Lehey" Message-ID: <20060518025147.GD96480@dan.emsphone.com> References: <446BA41F.5090905@averageadmins.com> <20060517224023.GC96480@dan.emsphone.com> <20060518005141.GP61448@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060518005141.GP61448@wantadilla.lemis.com> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: questions@FreeBSD.org, Jeff Cross Subject: Re: Find the Date a Port Was 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: Thu, 18 May 2006 02:51:53 -0000 In the last episode (May 18), Greg 'groggy' Lehey said: > On Wednesday, 17 May 2006 at 17:40:24 -0500, Dan Nelson wrote: > > In the last episode (May 17), Jeff Cross said: > >> I have recently upgraded to RELENG_6_1 and have attempted a > >> portupgrade on all ports since the upgrade so that new libs, etc. > >> are being used with the installed ports. When it *finally* > >> finished I saw that 9 ports were not upgraded due to various > >> reasons but because I did this from the command line I couldn't > >> scroll up to see what 9 ports failed. > >> > >> Is it possible to determine which ports weren't upgraded so I can > >> deal with them manually or is it possible to show the install date > >> for all ports? If I can pull the install date for all of them I > >> can see which ones are older than today and deal with them > >> individually. I looked at the man page for pkg_info to see if > >> there was anything I could do there to list the installed ports > >> along with an installation date but I didn't see anything. > > > > I use "cd /var/db/pkg ; ls -l */+COMMENT". Add a -t to sort by date. > > I find that "ls -lrt /var/db/pkg" is even more useful: it shows the > packages in order of installation, so you can see which dependencies > were installed as well. The problem is if you use portupgrade, it will update the dependencies inside +CONTENTS and +REQUIRED_BY, so ports that may have been installed long ago will have their directory timestamps updated: /var/db/pkg> ls -l pkgconfig-0.20_2 total 41 -rw-r--r-- 1 root wheel 60 May 2 09:54 +COMMENT -rw-r--r-- 1 root wheel 539 May 2 09:54 +CONTENTS -rw-r--r-- 1 root wheel 771 May 2 09:54 +DESC -r--r--r-- 1 root wheel 15248 May 2 09:54 +MTREE_DIRS -rw-r--r-- 1 root wheel 4072 May 17 15:22 +REQUIRED_BY drwxr-xr-x 2 root wheel 512 May 17 15:21 ./ drwxr-xr-x 692 root wheel 18432 May 17 15:21 ../ It depends on what date you're interested in, I guess. -- Dan Nelson dnelson@allantgroup.com