I want to copy some Debian files to a computer that hasn't got internet. I don't want to get a bunch of dependencies manually, so I went to /var/cache/apt/archives
and copied all the Debian archives to a thumb drive. If I merge these archives to my other computer's /var/cache/apt/archives
directory and then restart the machine, will it install them for me? Or do I have to manually install all the packages?
1 Answer
While apt does download to /var/cache/apt/archives
, it doesn't automatically install packages from there. To install from downloaded package files, just do:
sudo apt install /path/to/debs/*.deb
-
note that sometimes you need to run
sudo apt install -f
tofix missed dependencies
. Mar 26, 2017 at 14:55
sudo apt install /path/to/debs/*.deb
, I suppose.