[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: auto-download deb files that are already installed



Chuckk Hubbard wrote:
Hi.  I'm still working on this un-networked laptop.  It's looking
pretty good, now I'm ready to put the audio apps on it that I use.
I made a list from Synaptic of the packages I have on the desktop, and
now I'm hoping to download all the packages and put them on my flash
drive.
If I put "apt-get -d install pkg", I just get a message that it is
already the latest version.  Is there a way around this?  Maybe with
dpkg?  I couldn't find any options that accounted for this.

The only thing I can think of- that doesn't involve making monstrous
lists of dependencies and downloading all the debs individually- would
be to uninstall all these packages, then run apt-get -d install, save
all the debs to my flash drive, and then reinstall them.

Is there some other way to fool apt into thinking the packages aren't there?

-Chuckk


I think the problem is that apt on the laptop doesn't know about the new packages because you dont have an up to date package list on you laptop. I know of two ways around this.

The first is a hack I use. Copy the package files from /var/lib/apt/list and the contents files from /var/cache/apt/ from the desktop to the laptop and place the deb files in the /var/cache/apt/archives directory on the laptop and apt-get should find them as normal. Also put the entries from the sources.list on the desktop onto the laptop and do 'apt-get update' this will fail because you dont have an internet connection and just use the list you copied over.

The proper way, which I could never get to work for some reason is to create a local repository on your flash disk using dpkg-scanpackages and put this in your sources.list on the laptop. You may want to google a bit more info on this.

HTH

Wackojacko



Reply to: