Build from a source .deb
Jani Monoses
jani.monoses at gmail.com
Sun Nov 13 17:32:08 UTC 2005
Robert Entner wrote:
> Hello!
>
> 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 me?
If the source package is in ubuntu
$apt-get source package # to get the source pkg which is _not_ a .deb
$cd package-x.y.z
$edit .c file
$apt-get build-dep package # packages which are needed for building it
$apt-get install devscripts # developer scripts used for building
$debuild -us -uc # should build a .deb and place it in ../
$sudo dpkg -i ../package-x.y.z_arch.deb # to install it
Hope I didn't foget anything
jani
PS: For more details search the ubuntu wiki for developer resources
More information about the ubuntu-users
mailing list