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

Is there anyway to package the installed software on the system?

I mean without going to/var/cache/apt.. and without downloading anything else, can i use a dpkg command to make a packages from all installed software on my system?

So i can take those packages, put them on a CD, and install them on another system without grabbing files from the cache or using AptonCD.

share|improve this question

Yes, you can use dpkg-repack to accomplish this.

  1. Install dpkg-repack Install dpkg-repack and fakeroot Install fakeroot (to avoid being root to repackage). Or from the terminal:

    sudo apt-get install dpkg-repack fakeroot
  2. Repackge installed package

    fakeroot -u dpkg-repack <package name>

And you'll find the package in the current directory.

Note that any changes on the system on the package after it has been installed will be reflected in the repackaged version!

share|improve this answer
Is there any way to repack all dependencies in a folder? Because I can't use output of this package and don't have internet to install with gdebi – Daniyal Jun 24 '15 at 7:53
@Daniyal you may need o write custom script for that – Tachyons Jun 24 '15 at 9:41
Thanks, Can I write with apt-rdepends and bash script? – Daniyal Jun 24 '15 at 10:45
@Daniyal, yes you can but apt-rdepends just emulates dependence resolving, may be better to use debfoster instead. – Sneetsher Nov 27 '15 at 15:27

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.