Re: where are the actual ".deb" packages? all I see are "pkgcache.bin" and "srcpkgcache.bin" . . .
On Sun, Feb 26, 2023 at 05:28:44PM +0000, Albretch Mueller wrote:
> Basically, I am trying to download all packages that are part of the
> installation dependencies of a given one into a directory of my
> choosing to then install packages on an unexposed machine.
The tricky part here is that the packages on machine A are not necessarily
the same as on machine B. So, installing package P1 on machine A may
need dependencies P2, P3 and P4. But on machine B, it may need dependencies
P3, P4 and P5 instead.
If you ignore that, then the obvious answer is:
A# apt-get --download-only --reinstall install P1
A# cd /var/cache/apt/archives
A# scp *.deb B:/var/cache/apt/archives/
A# ssh root@B
B# cd /var/cache/apt/archives
B# apt-get install ./P1.deb
That should utilize the cached dependent packages P2, P3, P4 which are
located in /v/c/a/a on machine B.
If additional dependencies are needed, you'll have to fetch those by
hand.
Reply to: