Is it possible to install ALL fetched packages?

Today I ran into a problem on my virtual machine. I had issues with several packages, so I blindly ran pkg upgrade -f. Pkg fetched all the required packages, but ran out of disk space while installing (I expanded the virtual disk later). The fetched packages are still in /var/cache/pkg, but how to install them all at once?
 
If it wasn't able to fetch those package due to disk shortage then nothing would be installed or removed yet. It will fetch everything first, then apply them. So if it failed during the fetch it wouldn't proceed to installing and/or remove anything.
 
So if it failed during the fetch it wouldn't proceed to installing and/or remove anything.
No, it failed during the installation! It fetched everything, removed all existing packages and started installing, when suddenly ran out of disk space.
PS, I managed to reinstall most of required software manually.
 
pkg prime-list is a good command to get a list of the "leaf" packages installed (things like libre-office, firefox, gnucash, etc). This can then be used to reinstall/upgrade. I find it helpful, especially going across versions.
Perhaps the version of firefox in 15.0 has different dependencies from the version of firefox in 13.x. So prime-list shows "firefox" and when you do pkg install firefox you get the different dependencies and don't have any unused packages.
 
Back
Top