LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-15-2005, 09:42 AM   #1
J_K9
Member
 
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!

M.
 
Old 11-16-2005, 03:12 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

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
signifer123
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
solved

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

h**p://hyper-get.sourceforge.net/news/?p=5#more-5

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:04 AM.

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
Open Source Consulting | Domain Registration