2

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.

1 Answer 1

2

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.

2
  • 1. the ls -Alt /var/db/pkg | grep '/$' | tail -n 20 gives me empty result, because grep '/$' matches zero lines. I greatly appreciate your answer. So if I mean well the folder dates in /var/db/pkg means the build dates of each package?
    – netmano
    Oct 30, 2012 at 7:46
  • 1
    Yes, contents of those directories displays actions associated with any of installed port and lists of its files. So, if some of ports was changed or updated, last access time of appropriate directory will be changed too. By the way, you can remove | grep '/$' from command (I used it to filter only dirs in ls output). Oct 30, 2012 at 7:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .