Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a directory of .deb files which I copied from the cache folder of apt. There are many applications and Ubuntu updates among them. but there's no dependency failure because they were all downloaded by 'add/remove applications' and 'update manager' automatically.

Now I have installed the same version of Ubuntu (9.04) and I want to install those apps and updates again(though they are not new versions). In other words, I want to make this fresh Ubuntu install exactly like the old one but without downloading any thing and using only those .deb files that I copied. All I have is an archive folder containing the .deb files and a 'pkgcache.bin' file.

I know I can double-click the .deb files and install them manually but then I have to find out and follow the dependencies one by one from the installer errors. I have also tried adding an offline repository but it didn't work. I think because all of my .deb's are in on folder, and there is no separate 'main', 'restricted', ... folder?!

Is there a way to do all of this automatically?

share|improve this question

migrated from Sep 8 '11 at 11:19

This question came from our site for professional and enthusiast programmers.

OK. Thanks anyway. – p00ya Feb 9 '11 at 23:20
up vote 2 down vote accepted


All I had to do to install a group of .deb files automatically was:

  1. cd deb-files-location

  2. sudo dpkg -i *.deb

share|improve this answer
beat me to it :P Correct if wrong but the new USC also does it when you open loads of .deb files at a time? – Conor Rynne Sep 8 '11 at 14:21

Your Answer


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.