how to get apt-get to install from source

Oliver Grawert ogra at ubuntu.com
Thu Jul 14 12:21:20 UTC 2005


hi,
Am Donnerstag, den 14.07.2005, 21:45 +1000 schrieb Peter Lieverdink:

> > you can achieve this with:
> > 
> > sudo apt-get build-dep <package>  # gets all build dependencys...
> > apt-get source -b <package>	  # gets the source and builds it
> > sudo dpkg -i <package>.deb	  # installs your built package
> > 
> > note that you dont need (and shouldnt use) sudo to build the package ;)
> 
> Also note that this would be completely pointless if you didn't
> customise the ./configure call in the build scripts first. You'd just
> end up with a apckage dientical to the precompiled one.
indeed, then it would look a bit different in the middle:

sudo apt-get build-dep <package>  # gets all build dependencys...
apt-get source <package>	  # note the missing -b
...edit debian/rules in the source dir for your ./configure changes...
fakeroot dpkg-buildpackage        # run in the source dir makes the .deb
sudo dpkg -i <package>.deb	  # installs your built package

ciao
	oli
-------------- 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/20050714/4f0702f2/attachment.sig>


More information about the ubuntu-users mailing list