how to get apt-get to install from source

Oliver Grawert ogra at ubuntu.com
Thu Jul 14 10:41:58 UTC 2005


hi,
Am Donnerstag, den 14.07.2005, 13:42 +1000 schrieb Serg Belokamen:
> I think the question was (and if its not then here it is):
> 
> How would one approach building application from source (so
> ./configure, make...) but using apt as an assistant so to speak. So,
> for example we woulod say something like (psudo only) apt
> path/to/source/code and it would take care of compilation and all
> dependencies. I recall reading about something similar a while back
> but never looked into it in detail :(
> 
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 ;)

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/bc6a55bd/attachment.sig>


More information about the ubuntu-users mailing list