pkg delete query

If I run pkg delete -a does that clean out the the pkgs from /var/cache/pkg, and if not, would a pkg install attempt to fetch them from cache?

I'm doing some testing which involves installing a number of pkgs and want to avoid downloading them repeatedly to establish a clean environment.
 
pkg-clean(8) cleans out the cache, pkg-delete(8) deletes installed packages. pkg-delete(8) doesn't remove the package from the cache.

So, pkg install somepackage would download (to the cache) and install somepackage. If you pkg delete somepackage that installed package would be removed. If you do pkg install somepackage again it would get installed from the cache, because it was already downloaded with the previous pkg-install(8).
 
Back
Top