Re: Re: Moo! 9th preview of APT 1.1 released: Go and test new supercow powers
On Thu, Aug 20, 2015 at 05:27:49AM +0530, shirish शिरीष wrote:
> There are and have been places where there is no internet.
>
> So for this let's say there's machine A (connected to Internet/web)
> and machine B (not connected to Internet/web)
>
> So the easiest way has been to update the index on machine A, go to
> the machine B and copy all the files from machine a
> /var/lib/apt/lists/ to machine b /var/lib/apt/lists .
>
> Both the machines have the same /etc/apt/sources.list and the same
> machine architecture, the processors, the form factor, everything else
> may be same or different shouldn't matter.
>
> Now both the machines have same number of new packages and similar or
> not similar packages that are installed.
>
> Let's say now I want to install a package on machine B. I do not know
> which of its dependencies are installed or not.
>
> So what I do is I go to machine A, go to packages.debian.org , put the
> name or whatever part-name I remember of the binary, see what is the
> nearest name and on which track it is, as in stable, testing,
> unstable/sid or experimental and the one which machine B has.
>
> Download the binary.
>
> copy it to a usb disk and mount it to machine B and copy it to HDD there.
>
> Then in machine B say :-
>
> $ sudo dpkg -i foo*.deb
>
> Now if there are any dependencies unsatisfied then it will be broken
> but dpkg does tell which package is missing.
>
> So then using
>
> $sudo aptitude purge foo.deb and get the dependent packages one by one
> using the same method as shared above.
>
> After 4-5 tries when all the dependent packages are found, I put all
> of them in a single directory and ask dpkg to install all the files in
> the directory.
>
> /somedir$ sudo dpkg -i *
>
> dpkg does it work.
>
> While one way to automating this whole thing would be to use
> apt-offline, I am interested if there is another way to know which
> dependencies are missing and I think Josh Triplett was hinting that
> due to the new apt this has become somewhat easier to know.
"apt install foo*.deb" does a better job of handling dependencies than
"dpkg -i foo*.deb". That doesn't solve the problem of being unable to
download those packages, though. For that, I think you probably still
want apt-offline or something like it.
- Josh Triplett
Reply to: