Build from a source .deb

Dennis Kaarsemaker dennis at kaarsemaker.net
Sun Nov 13 17:29:46 UTC 2005


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
> me?

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 
-- 
Dennis K.
  - Linux for human beings: http://www.ubuntulinux.org
  - Linux voor normale mensen: http://www.ubuntulinux.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20051113/d601f026/attachment.sig>


More information about the ubuntu-users mailing list