I want to be able to install software offline. For example, when reinstalling a hard drive or just running Manjaro live, I want to have downloaded packages and just install them until I have time to connect to the internet. I’ve been able to download packages using sudo pacman -Sw and saving the downloaded zst files.
But when I reboot and do not connect to internet and then try to install the packages using sudo pacman -U , I run into a problem because pacman is looking for dependencies of already installed packages and the various repository databases have not been updated yet (using sudo pacman -Sy).
My thought is, maybe I can perform the -Sy, and copy the updated databases somewhere and then when I boot up in an unconnected situation, I can copy those databases back.
- Would that work?
- Where are the databases to copy?