LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 01-26-2005, 07:47 PM   #1
SerfurJ
Member
 
Registered: May 2003
Posts: 80

Rep: Reputation: 15
dependency hell - installing .deb files without apt-get


i'm running a very stripped down version of debian woody on a psion palmtop computer that doesn't have apt-get. what's the best way to install packages in this situation? it seems like every package i try to install has a bunch of deps.
 
Old 01-26-2005, 09:06 PM   #2
pnijjar
LQ Newbie
 
Registered: Jan 2005
Location: Canada
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Well, the best way might be to install apt. If that is not an option you might run dselect, which was the way Debian users installed packages before apt. (Read the help for dselect before using it; it is not that intuitive.)


If you are crazy (and for some reason dselect does not work) you could use a second system to determine the dependencies you need. Before I remembered dselect I typed out the following, so I will publish it anyways..

If you have Linux running on some other machine (and you have root access to that machine) then you can set up a chroot environment that mirrors the one on the palmtop. Download the "debootstrap" shell script (download the source from http://packages.debian.org/debootstrap ) and use it to build a woody installation inside some directory (which I will call "mirrordir").

Next, use the chroot command to make mirrordir the root filesystem. Use apt to install all the packages currently installed on your palmtop. Then when you
want to install some new package, go to the chroot environment and type

apt-get --simulate install foo

and you should get a listing of the other packages that need to be downloaded and installed.

I am not certain this will work very well, and it is rather ugly. But if you are not installing a whole lot to the palmtop, it could ease the dependency hell. You might look into a package called "apt-zip" as well (I tried it once, but I could not get it to be useful.)
 
Old 01-27-2005, 07:58 AM   #3
SerfurJ
Member
 
Registered: May 2003
Posts: 80

Original Poster
Rep: Reputation: 15
thanks for the help. i will give dselect a try. the difficulty would be in fetching the files. i haven't looked into it yet, but hopefully i can calculate dependencies, download required files, then put them on the palmtop.

i thought of chrooting, but it doesn't work since all the binaries were built for an arm processor.

also, is there a way to specify from the debian packages site (http://www.debian.org/distrib/packages) that i want to install packages from debian woody? in slackware, the packages are associated with a certain slackware version to ease the problem of recursive dependencies. (i'm a debian n00b)
 
Old 01-27-2005, 10:07 AM   #4
Chevro
LQ Newbie
 
Registered: Jan 2005
Location: Eugene, Oregon
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by SerfurJ
also, is there a way to specify from the debian packages site (http://www.debian.org/distrib/packages) that i want to install packages from debian woody? in slackware, the packages are associated with a certain slackware version to ease the problem of recursive dependencies. (i'm a debian n00b)
There are only three debian versions: Stable/Woody, Testing/Sarge, and Unstable/Sid. When you go to the packages site, there are links for each.

say you want to install ssh

look at its dependencies at: the debian stable ssh page.

download it's dependencies.

dpkg -i ssh.deb libssl.deb

it's a pain, but if you don't have apt, it should work.

Last edited by Chevro; 01-27-2005 at 10:17 AM.
 
Old 01-27-2005, 10:49 AM   #5
SerfurJ
Member
 
Registered: May 2003
Posts: 80

Original Poster
Rep: Reputation: 15
thanks for the help.
 
Old 01-27-2005, 03:51 PM   #6
pnijjar
LQ Newbie
 
Registered: Jan 2005
Location: Canada
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by SerfurJ
[B]
thanks for the help. i will give dselect a try. the difficulty would be in fetching the files. i haven't looked into it yet, but hopefully i can calculate dependencies, download required files, then put them on the palmtop.

i thought of chrooting, but it doesn't work since all the binaries were built for an arm processor.
If you are just getting package names this will likely not matter much.
The actual dependencies do not vary much over architectures, although the
binaries will be different.

How do you plan to get the files on your palmtop? Does the palmtop have any kind of Internet access?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dependency madness with .deb files zvonSully Debian 2 03-18-2005 07:27 AM
Installing *.deb files locally Virp00 Linux - Newbie 12 03-07-2005 07:13 PM
Installing .deb files on Debian kram Linux - Newbie 2 01-22-2005 01:10 PM
Dependency Hell installing softw3are with apt-get londonboi Debian 7 03-19-2004 01:33 PM
apt-get Created Dependency Hell!! Shinobi Linux - Software 6 04-07-2003 12:35 PM


All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration