dpkg-scanpackages <download dir> /dev/null | gzip -9c > Packages.gz
Why don't you get a newer version of the packages you need from Debian?
And then run apt-get update && apt-get upgrade? I've thought about that. I guess that could work (and actually be better from a security standpoint). I guess I did not want to try that because the amount of dependencies to fetch for one software is finite, while the amount of packages to upgrade when one starts needing an upgrade is... Well, I guess it's finite too, I'm just afraid I'll end up downloading the whole website.
Seriously though, this sounds like a good approach. Now before doing that (actually I won't have access to the computer before Monday, that's why I'm just sitting there pondering rather than actually doing something), say I have two entries in my /etc/apt/sources.list, one for this folder where I copy stuff I downloaded on another computer, and one for the LiveCD on which I can find some packages.
If the folder has newer versions of packages that are also available (but older) on the CD, and I run apt-get upgrade, is apt going to go "Oh hey this folder has newer versions of packages I have installed, might as well install them", or will it go "Woah hey wait I have two versions of the same packages what the heck should I do with those" ?
Peniblec, your approach seems overly complicated.
why don't you just install the .deb's with dpkg or gdebi?
of course you have to start with the dependencies.
you should also know that crunchbang is based on debian stable.
it is, as the name says, rather stable, but some apps are using old versions.
there is also debian testing and unstable; i think ubuntu was originally based on debian testing, but has morphed far away from it. do not use ubuntu packages.
if you are trying to install an application with a higher version than what is in stable, you are likely to go into "dependency hell".
there are ways around that, but if you don't necessarily need that newest version, it's better to install an older version.
basically, installing apps offline is no different than online, you just have to provide your system with everything it asks for.
i would remove your additions to /etc/apt/sources.list and just install the packages "manually" with dpkg -i or gdebi.
you can search packages.debian only for packages in stable, which is wheezy iirc, and it also lists all dependencies for a certain package, with links, so you can download everything very conveniently, then move it to your other computer and install.
i have done that myself many times.
Last edited by ohnonot (2014-05-02 13:50:19)
Don't forget that some packages come from the crunchbang repo, and may have older versions than what is now available from wheezy/stable
Last edited by ohnonot (2014-05-03 07:04:07)
Thanks for your answers. I took a quick look at apt-offline but I assumed (wrongly) that I needed a second Linux with Internet access to process the signature generated by my disconnected PC. I only found out just now that it also runs on Windows; I'll be sure to try when I run into deeper dependencies-related problems.
For now I've simply downloaded the newer version of the outdated packages and run apt-get upgrade ; turns out those two packages could be updated without running into Dependency Hell.
Again, thanks for your advices!
Last edited by Peniblec (2014-05-06 19:57:25)
thanks for this.
since i have never used apt-offline, i can't help.
have how about "man apt-offline" or some documentation that came with it (usually in /usr/doc)?