Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Recently I have been working on some projects where I need to add extra packages to default Ubuntu install CDs.

I have managed to add these packages successfully and make their icons show up on the unity sidebar after the user finishes installing off the CD.

However, when adding these new packages, I have found that sorting out their dependencies has been painful. If a new package has dependencies A, B, C and D, and everything except D is included on the on-CD repositories, the installer wizard will error-out unless D is included on the CD, even if the internet is connected (please correct me if my analogy is wrong).

In this case, adding D is easy. But sometimes debian packages have dozens upon dozens of dependencies, and figuring out whether they are included on the CD by hand is cumbersome and time consuming. Sometimes I accidentally miss a dependency and only find out later when the installer CD errors out.

I'm thinking there has to be an easier way to do this. Does anybody have any ideas?

Andrew

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

apt-cache depends --recurse <pkg> will show all dependencies (with dependencies of dependencies, dependencies of dependencies of dependencies, etc). Then you may download them all and put to your CD.

share|improve this answer
    
Hi strangeman. Thanks very much for your help. apt-get depends --recurse is exactly what I want, except that it includes suggestions too. In other words, it lists dependencies of dependencies of suggestions (and dependencies of suggestions of suggestions, etc). In total I got 8000 packages to install for a dpkg with only 4 package dependencies in its control file. A little bit too much. Is there some way to get a recursive list with just the bare minimum? -Andrew –  user54557 May 22 '12 at 8:44
    
Of course. Try use apt-cache depends --recurse -i <pkg> The '-i' key print only important dependencies. Causes only Depends and Pre-Depends relations to be printed. –  strangeman May 22 '12 at 9:26
    
Thanks! Using '-i' I have reduced the list to just 91 entries. From these 91 entries, only 7 are not included on-CD. :). –  user54557 May 22 '12 at 10:49
add comment

uck Install uckUse uck to add extra packages in the live cd . It will add dependencies automatically

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.