On a PC with no internet connection I have local .deb files of some packages stored in individual folders. At present I copy all .deb
files of a package to var/cache/apt/archives/
then run sudo apt install package=version
to sort dependencies for me and to make sure the package would install the local version I have and not update. I do this for the rest of the packages I needed to install locally. My question would be is there a 'cleaner' way of doing this?
I tried copying all my deb files to the var/cache/apt/archives
folder and using
`# echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \
> /etc/apt/apt.conf.d/01keep-debs`
To keep my deb files and at least install all the packages in one go instead of copying then installing individually. But the above does not work for me.