一个linux操作系统究竟是如何“基于”另一个linux操作系统的?

当你回顾不同风格的Linux时,你经常会遇到“Ubuntu基于Debian”这样的短语,但这到底是什么意思呢?...

当你回顾不同风格的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
  • 阅读 ( 198 )
  • 分类:互联网

你可能感兴趣的文章

mono是什么?它如何帮助windows切换到linux?

...,是一个大型移动平台赖以生存的平台,比其他更流行的操作系统更好(绝对不是一个观点)。 ...

  • 发布于 2021-03-12 18:14
  • 阅读 ( 616 )

公司与社区:谁制造了更好的linux操作系统?

Linux是一个操作系统,但实际上,没有一个实体被称为Linux。相反,您需要下载一个“发行版”(或“发行版”),将Linux内核与提供完整桌面体验所需的附加软件捆绑在一起。这些发行版,我们有时称之为Linux操作系统,需要资...

  • 发布于 2021-03-12 22:56
  • 阅读 ( 210 )

切换到linux智能手机操作系统时需要考虑的10件事

因为它是Android操作系统(OS)中的一个关键组件,Linux对移动领域仍然至关重要。然而,虽然Android采用了Linux内核,但它远不是另一个Linux发行版。 ...

  • 发布于 2021-03-13 05:20
  • 阅读 ( 255 )

5个创新的linux操作系统您今天应该尝试一下

有许许多多的Linux操作系统,不同的主题。每个人的行为和外表都是独一无二的。然而,在这一系列的操作系统中,有几个在它们带来的东西方面脱颖而出。而这个词只能用创新来形容。 ...

  • 发布于 2021-03-15 07:17
  • 阅读 ( 199 )

我们使用哪些linux操作系统,为什么

我们真的希望你开始使用Linux。但是,由于有太多的Linux操作系统可供选择,我们在这里介绍了其中一些操作系统,因此很难决定从哪一个开始。 ...

  • 发布于 2021-03-15 17:15
  • 阅读 ( 258 )

如何构建自己的可引导linux live cd

...cd(或“livedisc”)是一种可引导的CD、DVD或USB驱动器,其操作系统可在**磁盘时运行。虽然操作系统通常安装在硬盘上,但可引导介质非常有用。 ...

  • 发布于 2021-03-16 18:04
  • 阅读 ( 361 )

为什么linux是免费的:开源世界是如何赚钱的

...们的机器上使用他们的程序。因此,如果你是一名在商业操作系统上生成代码的员工,你的雇主很可能从事软件销售业务。 ...

  • 发布于 2021-03-17 08:01
  • 阅读 ( 413 )

最佳linux操作发行版

想试试Linux吗?有这么多的Linux操作系统(称为“发行版”或“发行版”),每一个都提供不同的好处。 ...

  • 发布于 2021-03-22 01:53
  • 阅读 ( 266 )

linux命令参考备忘单

... 无论您使用哪种基于Linux的操作系统,文本命令通常都能正常工作,而且结果通常比图形桌面界面提供的速度要快。 ...

  • 发布于 2021-03-22 04:06
  • 阅读 ( 235 )

现在可以安装3个linux智能手机操作系统

... 有没有可能放弃Android和iOS,转而使用另一种移动操作系统? ...

  • 发布于 2021-03-22 13:52
  • 阅读 ( 310 )
TNT5fcc
TNT5fcc

0 篇文章