一個linux作業系統究竟是如何“基於”另一個linux作業系統的?

當你回顧不同風格的Linux時,你經常會遇到“Ubuntu基於Debian”這樣的短語,但這到底是什麼意思呢?...

一個linux作業系統究竟是如何“基於”另一個linux作業系統的?

當你回顧不同風格的Linux時,你經常會遇到“Ubuntu基於Debian”這樣的短語,但這到底是什麼意思呢?

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者閱讀器PLPiper正試圖瞭解Linux變體的工作原理:

I’ve been looking through quite a number of Linux distros recently to get an idea of what’s around, and one phrase that keeps coming up is that “[this OS] is based on [another OS]”. For example:

  • Fedora is based on Red Hat
  • Ubuntu is based on Debian
  • Linux Mint is based on Ubuntu

For someone coming from a Mac environment I understand how “OS X is based on Darwin”, however when I look at Linux Distros, I find myself asking “Aren’t they all based on Linux..?”

In this context, what exactly does it mean for one Linux OS to be based on another Linux OS?

那麼,當我們談論Linux的一個版本基於另一個版本時,這到底意味著什麼呢?

答案

超級使用者貢獻者kostix提供了整個系統的可靠概述:

Linux is a kernel — a (complex) piece of software which works with the hardware and exports a certain Application Programming Interface (API), and binary conventi*** on how to precisely use it (Application Binary Interface, ABI) available to the “user-space” applicati***.

Debian, RedHat and others are operating systems — complete software environments which c***ist of the kernel and a set of user-space programs which make the computer useful as they perform sensible tasks (sending/receiving mail, allowing you to browse the Internet, driving a robot etc).

Now each such OS, while providing mostly the same software (there are not so many free mail server programs or Internet browsers or desktop environments, for example) differ in approaches to do this and also in their stated goals and release cycles.

Quite typically these OSes are called “distributi***”. This is, IMO, a somewhat wrong term stemming from the fact you’re technically able to build all the required software by hand and install it on a target machine, so these OSes distribute the packaged software so you either don’t need to build it (Debian, RedHat) or they facilitate such building (Gentoo). They also usually provide an installer which helps to install the OS onto a target machine.

Making and supporting an OS is a very complicated task requiring a complex and intricate infrastructure (upload queues, build servers, a bug tracker, and archive servers, mailing list software etc etc etc) and staff. This obviously raises a high barrier for creating a new, from-scratch OS. For instance, Debian provides ca. 37k packages for some five hardware architectures — go figure how much work is put into supporting this stuff.

Still, if someone thinks they need to create a new OS for whatever reason, it may be a good idea to use an existing foundation to build on. And this is exactly where OSes based on other OSes come into existence. For instance, Ubuntu builds upon Debian by just importing most packages from it and repackaging only a **all subset of them, plus packaging their own, providing their own artwork, default settings, documentation etc.

Note that there are variati*** to this “based on” thing. For instance, Debian fosters the creation of “pure blends” of itself: distributi*** which use Debian rather directly, and just add a bunch of packages and other stuff only useful for rather **all groups of users such as those working in education or medicine or music industry etc.

Another twist is that not all these OSes are based on Linux. For instance, Debian also provide FreeBSD and Hurd kernels. They have quite tiny user groups but anyway.


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-11 15:10
  • 閱讀 ( 47 )
  • 分類:網際網路

你可能感興趣的文章

這些是最難安裝的linux作業系統嗎?

...變體之間是不同的,其他事情也是如此。許多人將面臨的一個很大的不同點是,如何將這樣一個系統安裝到計算機上。 ...

  • 發佈於 2021-03-13 01:34
  • 閲讀 ( 46 )

切換到linux智慧手機作業系統時需要考慮的10件事

因為它是Android作業系統(OS)中的一個關鍵元件,Linux對移動領域仍然至關重要。然而,雖然Android採用了Linux核心,但它遠不是另一個Linux發行版。 ...

  • 發佈於 2021-03-13 05:20
  • 閲讀 ( 56 )

qubes os 3.2:最安全的linux作業系統

...Linux發行版(distro)都是小眾作業系統。例如,Kali Linux是一個道德駭客和滲透測試Linux發行版。有伺服器Linux作業系統、media center Linux發行版等。 ...

  • 發佈於 2021-03-14 14:08
  • 閲讀 ( 46 )

面向偏執狂的linux作業系統:最安全的選擇是什麼?

切換到Linux為使用者帶來了許多好處。從一個更穩定的系統到大量精選的高質量開源軟體,你將成為贏家。而且不會花你一分錢! ...

  • 發佈於 2021-03-14 19:20
  • 閲讀 ( 43 )

切換到linux?4種作業系統,讓人感覺賓至如歸

...工具和技術打開了大門,使您的計算體驗更輕鬆。但這是一個學習曲線,取決於你對Linux作業系統的選擇,即使是在桌面上導航也可能是一個挑戰。下面是如何讓你的新旅程更熟悉一點。 ...

  • 發佈於 2021-03-15 06:42
  • 閲讀 ( 51 )

5個創新的linux作業系統您今天應該嘗試一下

...Hat將此作業系統用作新技術的測試平臺。它盡最大努力在一個相當動態的環境中使用最新的和最好的。因此,它總是在不斷地變化和改進。例如,它是最早採用Wayland的Linux作業系統之一,Wayland是X顯示伺服器的替代品。 ...

  • 發佈於 2021-03-15 07:17
  • 閲讀 ( 37 )

我們使用哪些linux作業系統,為什麼

...我們在這裡介紹了其中一些作業系統,因此很難決定從哪一個開始。 ...

  • 發佈於 2021-03-15 17:15
  • 閲讀 ( 63 )

應該在虛擬機器中嘗試的7大linux作業系統

...在不使用雙引導的情況下執行Linux,虛擬機器(VM)都是一個明智的選擇。 ...

  • 發佈於 2021-03-16 11:49
  • 閲讀 ( 52 )

如何在linux上執行虛擬機器:3種不同的方法

您需要在您的Linux PC上執行另一個作業系統。雙引導是一個選項,但您可以使用虛擬機器。 ...

  • 發佈於 2021-03-17 03:13
  • 閲讀 ( 58 )

處理作業系統升級最安全的方法是什麼?

...:作業系統開發人員一直提供新特性。我們想要他們。買一個新盒子來獲取新程式碼的日子一去不復返了。現在你可以透過軟體更新獲得商品。 安全補丁:在將程式釋出到野外之前,不可能知道程式中的所有漏洞...

  • 發佈於 2021-03-18 19:58
  • 閲讀 ( 48 )