Debian Admin

Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips

  • Sponsor

  • Categories

  • Sponsor

  • Meta

  • Archives

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

Posted by Admin on December 26th, 2006

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

  • Share/Bookmark

One Response to “Put an unpacked .deb file back together Using dpkg-repack”

  1. Prakash Says:

    Thanks for this howto

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>