Linux : Rebuild deb package from installed files

Step 1 :

To rebuild Debian package (.deb) from an installation

kartook@H4C<3r:~$apt-get install dpkg-repack

Now here i am going to rebuild K3B from my Ubuntu 10.04

kartook@H4C<3r:~/packagebuild$ sudo dpkg-repack k3b
dpkg-deb: warning: ‘./dpkg-repack-13038/DEBIAN/control’ contains user-defined field ‘Original-Maintainer’
dpkg-deb: building package `k3b’ in `./k3b_1.91.0~rc2-0ubuntu3_amd64.deb’.
dpkg-deb: warning: ignoring 1 warnings about the control file(s)

kartook@H4C<3r:~/packagebuild$
kartook@H4C<3r:~/packagebuild$
kartook@H4C<3r:~/packagebuild$
kartook@H4C<3r:~/packagebuild$ ls
k3b_1.91.0~rc2-0ubuntu3_amd64.deb
kartook@H4C<3r:~/packagebuild$
kartook@H4C<3r:~/packagebuild$

1 thoughts on “Linux : Rebuild deb package from installed files

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.