Ubuntu – How to upgrade the Debian package with minor changes

aptdebpackage-managementpatchupgrade

I created a .deb which installs some features and copies some library to /usr/lib/ location. Now that if I have changed one of the .so file in the package and want to update the same to Debian package, what could be the scenario.

Simply how can i update files after installing the package. In windows the same is achieved by .MSP files to corresponding .MSI . How can I do the same in ubuntu?

Any help is appreciated.Thanks in advance.

Best Answer

First cd to the directory where your deb file is:

cd ~/lab

Then extract your deb file there:

dpkg-deb --raw-extract my.deb .

It will create some directories like:

DEBIAN  etc  usr

Apply your minor update whatever it's a new file removal or etc to the specific files you want.

Then recreate the package simply with:

dpkg-deb -b new.deb
Related Question