0

If I install compiled code, I don't see if the same open source code is actually compiled there. So this is why I would like to install OS via source code.

  • What do you think you would be installing? – David Feb 24 '21 at 15:57
  • I don't understand your question. I want to install Ubuntu 20.04.2.0 LTS via source code to my computer. – Lumesava Feb 24 '21 at 16:01
  • If you want to install an OS from source, I think you're looking for Arch. Ubuntu's goal has always been to make Linux accessible, which precludes the option to start from a digital heartbeat and work your way up. –  Feb 24 '21 at 16:03
  • You may be interested in this question and the accepted answer there: https://askubuntu.com/q/1316954/1157519 – Levente Feb 24 '21 at 16:11
  • But to install Arch linux I also need to start with compiled iso file. Can I start with open source code? I don't want to use compiled code to install it. – Lumesava Feb 24 '21 at 16:13
  • Maybe do a search for "Linux From Scratch". – KGIII Feb 24 '21 at 20:06

1 Answers1

1

Sure it's possible. However, it can be quite tedious.

The source code of Ubuntu packages are freely available hosted online (mostly at http://launchpad.net), and as apt-able Debian source packages (not to be confused with more common pre-compiled binary packages)

The basic workflow is that you download a source package, build it into a binary package (including compiling), then install the binary package.

There's a lot of skill baked into that workflow, like diagnosing compile errors and understanding how both kinds of packaging work.

Since you seem to be asking specifically about the initial install of a system, it's mostly the same...but requires chrooting from an already-running system in order to compile and install your kernel and initial package set.

If you are seeking a step-by-step how-do-I-do-this tutorial, that would be much too long to fit AskUbuntu's format. Start with the skills required to install using a chroot and how to download and compile source packages. After the few months it takes you to learn those skills competently, you will know what you need to know.

user535733
  • 62,253