how to package installed packages?
Matthew Harrington
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.
1 Answer
Yes, you can use dpkg-repack to accomplish this.
Install dpkg-repack
and fakeroot
(to avoid being root to repackage). Or from the terminal:
sudo apt-get install dpkg-repack fakerootRepackge 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!
4