Installing a package from a local file

When I installed FreeBSD, my network connection didn't work and I had to use a smartphone tether. But now that I have the system installed and the rtw88-kmod package in /var/cache/pkg, if I needed to reinstall for any reason, as long as I had that backed up, I could reinstall, put it back on the filesystem, and pkg add it and be good to go, right? Or wrong?

(STFW seems to indicate this is right, but I always like to hear such things from real people in direct response vs. maybe an out-of-context thing that only seems to be superficially right.)
 
Yes, and I don't think that you even need to put it into the cache directory. At least when tried pkg add ./package_name.pkg it just pulls up the relevant information and that's how I used to do it back in olden times.

The other thing to consider is dependencies, but it doesn't appear that in this case there are any other than actual things built into the base install.

Your other option would be to just download a more full featured install.

EDIT: Not that it's a bad idea to just give it a go in a VM just to be sure that you've got anything else you might need.
 
Back
Top