Freebsd – How to list when was all the installed FreeBSD ports built

freebsd

I have a FreeBSD 8.2-RELEASE system which I now upgrading to 9.0-RELEASE. In this process I need to rebuild all my ports installed.
How can I list the date of last build for each installed port, to be sure, everything was rebuilt now.
I used portmaster -af to rebuild everything, but when some build error happens, I continue with the command it gives in the end (with names of the folloing packages in its argument), but I would like to be sure that everything was rebuilt now.

Best Answer

ls -Alt /var/db/pkg | grep '/$' | tail -n 20 should show 20 oldest apps installed from ports.

Also, pkg_version -vIL= command could be usefult to compare versions of installed ports and ports in updated tree.

Related Topic