If I modify the source code of some package that I've installed with apt-get in Ubuntu, is there some package tool that will let me see the diff between what was the original installation and my modifications?
How did you perform these modifications? Did you just modify the some of the files that where already installed, or did you download the source package, modify that, and the build a new package? If you built your own package then you should have generated a .diff. If you just modified installed stuff look at debsums.
Or you could always download and extract (dpkg -x foo.deb /tmp/bar.dir) the official package, then diff that against the files you have installed.
If really need to make local changes to files that are installed I strongly suggest you consider learning how to build your own Debian packages.
You can view the differences between two versions of a binary package (.deb) using the debdiff tool in the devscripts package. If you want to see the differences between versions of a source package, you can run debdiff on the .dsc or .changes files, but I prefer an interdiff -z on the .diff.gz files for the two versions of the packages.
Of course, this all presumes that you're making your local changes "properly". If you're doing a bodge job (modifying files in place, or unpacking and repacking the binary package) then all bets are off, both in how you'd do the diff, as well as what's going to go wrong with your systems in the future.
How did you perform these modifications? Did you just modify the some of the files that where already installed, or did you download the source package, modify that, and the build a new package? If you built your own package then you should have generated a .diff. If you just modified installed stuff look at debsums.
Or you could always download and extract (
dpkg -x foo.deb /tmp/bar.dir
) the official package, then diff that against the files you have installed.If really need to make local changes to files that are installed I strongly suggest you consider learning how to build your own Debian packages.
There's a tool called blueprint that might do what you're looking for:
You can view the differences between two versions of a binary package (.deb) using the
debdiff
tool in thedevscripts
package. If you want to see the differences between versions of a source package, you can rundebdiff
on the.dsc
or.changes
files, but I prefer aninterdiff -z
on the.diff.gz
files for the two versions of the packages.Of course, this all presumes that you're making your local changes "properly". If you're doing a bodge job (modifying files in place, or unpacking and repacking the binary package) then all bets are off, both in how you'd do the diff, as well as what's going to go wrong with your systems in the future.
Not really.
debsums
will show you which files have been changed, but there's no tool I'm aware of that will get any more specific than that.