- Debian Admin - http://www.debianadmin.com -

Put an unpacked .deb file back together Using dpkg-repack

Posted By Admin On 26th December 2006 @ 07:00 In Package Mgmt | 1 Comment

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

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 no longer available elsewhere.

Note: dpkg-repack will place the created package in the current directory.

Install dpkg-repack in debian

#apt-get install dpkg-repack

Install dpkg-repack in Ubuntu

sudo apt-get install dpkg-repack

This will complete the installation.

dpkg-repack Syntax

dpkg-repack [–root=dir] [–arch=architecture] [–generate] packagename [packagename …]

Example

dpkg-repack kernel-image-2.6.16

This will create the kernel-image-2.6.16.deb package

If you want to know more information about dpkg-repack check man page

Tags: , , , , ,

You may also be interested in...


Article printed from Debian Admin: http://www.debianadmin.com

URL to article: http://www.debianadmin.com/put-an-unpacked-deb-file-back-together-using-dpkg-repack.html

Click here to print.