Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-15-2005, 09:42 AM   #1
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
How does apt-get work out a package's dependencies?

Hi all,

As you may or may not know, I started a project called hyper-get a couple of weeks ago, but there is just a little problem I can't find a solution to (it's for Debian-based systems).

I was wondering if anybody knew how apt-get discovers a package's dependencies.
  • Does it do it using dpkg?
    If so, how does dpkg do it? Does it update a file which it then interprets (in which case I could copy this file to be used in the application)?
  • Does it discover the dependencies at the repos?
    Which means that we'd have to simulate this with hyper-get...
  • Does it discover them at another place? On the internet? On the local computer?

I would be extremely grateful if someone could let me know how it is done, so that we can begin work on this application soon.

Thanks in advance!

Old 11-16-2005, 03:12 AM   #2
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
man dpkg should help. I've never used Debian but in Arch, that packages are just archives with a file that contains a list of deps, a file that contains a list of files, a file that contains a description and a small script that does whatever is required to install the package. .deb's would probably be somethign similar
Old 12-03-2005, 02:53 PM   #3
LQ Newbie
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0

in case anyone runs into this again they can serach for apt-get to find out how it works, we havea naexplaination on it in the blog


^^had to do that or it wouldn't allow the url


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get unmet dependencies jeffbarish Debian 9 10-27-2005 12:19 AM
APT unresolved dependencies pingu Linux - Software 5 05-11-2005 09:47 AM
apt doesn't fix all dependencies :(? darkleaf Debian 4 07-25-2004 04:08 AM
apt-get remove and dependencies wrongman Debian 3 05-21-2004 03:57 PM
Dependencies with apt-get and MySQL 4.0 jrbiochem Linux - Software 0 04-15-2004 11:20 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:31 PM.

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