Wednesday, November 24, 2010

Recreate Debian Packages with dpkg-repack

Dpkg-repack creates a .deb file out of a Debian package that has already been installed on your system. If any changes have been made to the package while it was unpacked (ie, files in /etc modified), the new package will inherit the changes.
This utility can make it easy to copy packages from one computer to another, or to recreate packages that are installed on your system, but are no longer available elsewhere.
Dpkg-repack should be run as root.
If you don't wish to run the rebuild as root, and you have the fakeroot package installed you can do so as follows: $ fakeroot -u dpkg-repack packagename.
Dpkg-repack will place the created package in the current directory.

No comments:

Post a Comment