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

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.

thanks.

share|improve this question

1 Answer 1

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 at 7:53
    
@Daniyal you may need o write custom script for that –  Tachyons Jun 24 at 9:41
    
Thanks, Can I write with apt-rdepends and bash script? –  Daniyal Jun 24 at 10:45

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.