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?
2 Answers
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.
The easiest way is to use apt-build
See http://manpages.ubuntu.com/manpages/raring/man1/apt-build.1.html
See also How to build all my installed package from sources?
Building from source is, IMO over rated. See :
(yes I am a long time gentoo user as well)
And
https://fedoraproject.org/wiki/Package_management_system
And
http://biodegradablegeek.com/2008/12/gentoo-sucks-ubuntu-doesnt/
Honestly, again IMO, if you want to do all this, I highly suggest you use gentoo.
apt-get source packagename
but building it and installing are separate steps