Find the Date a Port Was Installed

Greg 'groggy' Lehey grog at FreeBSD.org
Wed May 17 17:51:46 PDT 2006


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.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060518/f93d96e2/attachment.pgp


More information about the freebsd-questions mailing list