Rebuild a deb package from source

It’s simple to rebuild a deb package from their source code for your desktop install. The process is very easy.You can use apt to raze the package sources, next you have modify them as needed and after all you need the Debian tools. First we must to download the package source

[email protected]:~# apt-get source <pack-name>


[email protected]:~# cd <pack-name>

Now we must edit the package source code and make the changes needed to the source code of the package

[email protected]:~# nano examples/classic-format.c

After that the important is check for any build dependencies the package may have, so install any build dependencies if needed

[email protected]:~# apt install dh-autoreconf libnfc-dev libssl-dev

With the dependencies installed the next command is all it takes to build our new version

[email protected]:~# dpkg-buildpackage

When the build completes without errors you’ll be able to install it

[email protected]:~# dpkg -i ../<pack-name>.deb