Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2006 15:43:21 -0700
From:      Colin Percival <cperciva@freebsd.org>
To:        Jeff Cross <jeff.cross@averageadmins.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Find the Date a Port Was Installed
Message-ID:  <446BA709.9020507@freebsd.org>
In-Reply-To: <446BA41F.5090905@averageadmins.com>
References:  <446BA41F.5090905@averageadmins.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeff Cross wrote:
> 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.

# stat -f "%Sm %N" /var/db/pkg/*/+COMMENT | cut -f 1,5 -d / | tr -d /

Replace "%Sm" with %m" if you want the install dates as seconds-since-epoch.

Colin Percival





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?446BA709.9020507>