Quote:
Originally Posted by IdOp
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.
Quote:
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.