Build from a source .deb

Robert Entner entner at
Mon Nov 14 09:15:39 UTC 2005

Thanks for the fast answer, also to Jani!

I must confess I am impressed, especially about build-dep.  As I did not 
find a short HowTo in the wiki I generated one:


Dennis Kaarsemaker wrote:
> On zo, 2005-11-13 at 17:40 +0100, Robert Entner wrote:
>>I would like to take a source .deb package, change exactly one .c
>>file, and then generate a regular binary .deb package out of it.
>>I suppose that requires just very few commands, can you please help
> sudo apt-get build-dep $package
> sudo apt-get isntall build-essential
> mkdir temp
> cd temp
> apt-get source $package
> cd $package-$version
> [make-the change]
> dpkg-buildpackage -rfakeroot
> cd ..
> sudo dpkg -i $package-$version.deb
> cd ..
> rm -rf temp 

More information about the ubuntu-users mailing list