3

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?

4
  • You can get the source for a package with apt-get source packagename but building it and installing are separate steps Apr 24, 2013 at 13:41
  • Warren, can you explain briefly these steps, please? at least command(s) examples. Thanks.
    – Tetractys
    Apr 24, 2013 at 13:56
  • @bodhi.zazen Not a duplicate, OP is asking about compiling packages from source, not about building Ubuntu from source. Apr 24, 2013 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, 2013 at 9:27

2 Answers 2

3

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.

1

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 :

http://funroll-loops.info/

(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.

Not the answer you're looking for? Browse other questions tagged .