PDA

View Full Version : Modify debian package


vlatkop
11-21-2006, 05:47 PM
Hi,
I am kind a new using dpkg, dpkg-deb tools so I just have one simple question. When I unpack debian package with:

dkpg-deb -x package_name.deb package_nameand:

dpkg-deb -e package_name.deb package_name/DEBIAN
After modifying some control, or configuration files do I have to regenerate md5sums file again, before I pack the folder with:

dpkg-deb -b package_name package_name.debI have tryed to install the .deb file without regenerating the md5sums and it works fine (including changes made by me).
Note: The .deb file has allready generated md5sums.
Regards

danieldk
11-21-2006, 08:01 PM
Personally, I find the easiest way to modify Debian packages, is to use the package sources. These can be fetched with

apt-get source <packagename>

You need a deb-src entry for this in your sources.list. After that, you can rebuild the package by running "debuild" in the package source directory. "debuild" is part of the "devscripts" package.