Linux : Rebuild deb package from installed files

Step 1 :

To rebuild Debian package (.deb) from an installation

[email protected]<3r:~$apt-get install dpkg-repack

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

[email protected]<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)

[email protected]<3r:~/packagebuild$
[email protected]<3r:~/packagebuild$
[email protected]<3r:~/packagebuild$
[email protected]<3r:~/packagebuild$ ls
[email protected]<3r:~/packagebuild$
[email protected]<3r:~/packagebuild$

One thought 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.