Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

This question already has an answer here:

As I asked in the title, I would like to know how to setup Synaptic or how to instruct apt-get to install/upgrade software exclusively from source. I mean, apt-get/synaptic install only pre-compiled packets. I would like to setup the "building all" like Portage in Gentoo. Is this possible? If yes, how?

share|improve this question

marked as duplicate by Braiam, Aditya, LiveWireBT, Eric Carvalho, qbi Nov 1 '13 at 22:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You can get the source for a package with apt-get source packagename but building it and installing are separate steps – Warren Hill Apr 24 '13 at 13:41
Warren, can you explain briefly these steps, please? at least command(s) examples. Thanks. – Tetractys Apr 24 '13 at 13:56
@bodhi.zazen Not a duplicate, OP is asking about compiling packages from source, not about building Ubuntu from source. – Basharat Sialvi Apr 24 '13 at 21:20
@BasharatSial Question: "I would like to setup the "building all" like Portage in Gentoo." Answer: "apt-build world" Seems very much like a duplicate to me. – LiveWireBT Nov 1 '13 at 9:27

2 Answers 2

up vote 1 down vote accepted

The easiest way is to use apt-build


See also Build Ubuntu from source, for speed

Building from source is, IMO over rated. See :

(yes I am a long time gentoo user as well)



Honestly, again IMO, if you want to do all this, I highly suggest you use gentoo.

share|improve this answer

Apt-get doesn't work like BSD ports or Gentoo portage. You can apt-get source and debuild all of them individually, but it's not easily automate-able or built-in.

You could theoretically script mirroring a source repo, building a dependency chain, starting at the root, and building each package... but generally for the target user-base of Ubuntu, it's not worth it.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.