SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-05-02 06:19:20

Peniblec
New Member
Registered: 2012-07-06
Posts: 9

Install packages, manage dependencies without Internet access

dpkg-scanpackages <download dir> /dev/null | gzip -9c > Packages.gz

Offline

Be excellent to each other!

#2 2014-05-02 06:22:02

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: Install packages, manage dependencies without Internet access

Why don't you get a newer version of the packages you need from Debian?

Offline

#3 2014-05-02 07:34:19

Peniblec
New Member
Registered: 2012-07-06
Posts: 9

Re: Install packages, manage dependencies without Internet access

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" ?

Offline

#4 2014-05-02 13:46:53

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Install packages, manage dependencies without Internet access

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)

Offline

#5 2014-05-02 14:52:22

Alad
Software Satan
Registered: 2014-02-20
Posts: 1,512

Re: Install packages, manage dependencies without Internet access

Offline

#6 2014-05-02 15:13:54

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Install packages, manage dependencies without Internet access

Offline

#7 2014-05-02 17:21:01

Peniblec
New Member
Registered: 2012-07-06
Posts: 9

Re: Install packages, manage dependencies without Internet access

Offline

#8 2014-05-02 17:29:24

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: Install packages, manage dependencies without Internet access

@OP

Don't forget that some packages come from the crunchbang repo, and may have older versions than what is now available from wheezy/stable

Offline

#9 2014-05-03 07:01:32

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Install packages, manage dependencies without Internet access

Last edited by ohnonot (2014-05-03 07:04:07)

Offline

#10 2014-05-03 12:14:38

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Install packages, manage dependencies without Internet access

Offline

#11 2014-05-05 20:05:23

Peniblec
New Member
Registered: 2012-07-06
Posts: 9

Re: Install packages, manage dependencies without Internet access

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!

Offline

#12 2014-05-06 06:21:41

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Install packages, manage dependencies without Internet access

Offline

#13 2014-05-06 19:54:30

Peniblec
New Member
Registered: 2012-07-06
Posts: 9

Re: Install packages, manage dependencies without Internet access

Last edited by Peniblec (2014-05-06 19:57:25)

Offline

#14 2014-05-07 06:04:27

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Install packages, manage dependencies without Internet access

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)?

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo