View Single Post
  #7   (View Single Post)  
Old 21st August 2012
ocicat ocicat is offline
Join Date: Apr 2008
Posts: 3,290

Originally Posted by IdOp View Post
I agree that pkg_info is the preferred and direct method for getting the info in question. But that does assume that you know what packages have been installed, doesn't it?
No, issuing pkg_info(1) with no arguments will display a complete list of packages installed in /var/db/pkg.
The point I was trying to add is that sometimes a lot of stuff gets installed recursively as dependencies, and unless you're a speed reader with photographic memory you may not know all of which packages were installed on this occasion.
...& issuing pkg_info(1) with no arguments provides a list of everything which has been installed through pkg_add(1) -- either directly or indirectly as dependencies.

script(1) is a good friend. pkg_info(1) can be too.
Reply With Quote