Английская Википедия:Gentoo Linux

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Use mdy dates Шаблон:Infobox OS

Gentoo Linux (pronounced Шаблон:IPAc-en Шаблон:Respell[1]) is a Linux distribution built using the Portage package management system. Unlike a binary software distribution, the source code is compiled locally according to the user's preferences and is often optimized for the specific type of computer. Precompiled binaries are available for some packages.[2] Gentoo runs on a wide variety of processors, including x86, PowerPC, SPARC, DEC Alpha, ARM, MIPS and PA-RISC.

Gentoo Linux was named after the gentoo penguin, the fastest swimming species of penguin. The name was chosen to reflect the potential speed improvements of machine-specific optimization, which is a major feature of Gentoo. Gentoo package management is designed to be modular, portable, easy to maintain, and flexible. Gentoo describes itself as a meta-distribution because of its adaptability, in that the majority of users have configurations and sets of installed programs which are unique to the system and the applications they use.[3]

History

Gentoo Linux was initially created by Daniel Robbins as the Enoch Linux distribution. The goal was to create a distribution without precompiled binaries that was tuned to the hardware and only included required programs.[4] At least one version of Enoch was distributed: version 0.75, in December 1999.[5]

Daniel Robbins and the other contributors experimented with a fork of GCC known as EGCS, developed by Cygnus Solutions. At this point, "Enoch" was renamed "Gentoo" Linux. The modifications to EGCS eventually became part of the official GCC (version 2.95), and other Linux distributions experienced similar speed increases.[6]

After problems with a bug on his own system, Robbins halted Gentoo development and switched to FreeBSD for several months, later saying, "I decided to add several FreeBSD features to make our autobuild system (now called Portage) a true next-generation ports system."[7]

Gentoo Linux 1.0 was released on March 31, 2002.[8] In 2004, Robbins set up the non-profit Gentoo Foundation, transferred all copyrights and trademarks to it, and stepped down as chief architect of the project.[9]

The current board of trustees[10] is composed of five members who were announced (following an election) on March 2, 2008.[11] There is also a seven-member Gentoo Council that oversees the technical issues and policies of Gentoo.[12] The Gentoo Council members are elected annually, for a period of one year, by the active Gentoo developers. When a member of the Council retires, the successor is voted into place by the existing Council members.[13]

The Gentoo Foundation is a domestic non-profit corporation,[14] registered in the State of New Mexico.[15] In late 2007, the Foundation's charter was revoked,[16] but by May 2008 the State of New Mexico declared that the Gentoo Foundation, Inc. had returned to good standing and was free to do business.[17]

Features

Gentoo appeals to Linux users who want full control of the software that is installed and running on their computer.[18]Шаблон:Rp People who are prepared to invest the time required to configure and tune a Gentoo system can build very efficient desktops and servers.Шаблон:Citation needed Gentoo encourages users to build a Linux kernel tailored to their particular hardware. It allows very fine control of which services are installed and running, including the option to choose between systemd or OpenRC as the default init system. Memory usage can also be reduced compared to other distributions by omitting unnecessary kernel features and services.[18]Шаблон:Rp

Gentoo's package repositories provide a large collection of software. Each package contains details of any dependencies, so only the minimum set of packages need to be installed. Optional features of individual packages, such as whether they require LDAP or Qt support, can be selected by the user and any resulting package requirements are automatically included in the set of dependencies.[18]Шаблон:Rp

Inasmuch as Gentoo does not have a default look and feel, installed packages usually appear as their authors intended.[18]Шаблон:Rp

Portage

Шаблон:Main

Installing software. In this example, Darktable will build with Flickr and geolocation support.
Installing software. In this example, Darktable will build with Flickr and geolocation support.

Portage is Gentoo's software distribution and package management system. The original design was based on the ports system used by the Berkeley Software Distribution (BSD) operating systems. The Gentoo repository contains over 19,000 packages ready for installation in a Gentoo system.[19]

A single invocation of portage's Шаблон:Mono command can update the local copy of the Gentoo repository, search for a package, or download, compile, and install one or more packages and their dependencies. The built-in features can be set for individual packages, or globally, with so-called "USE flags".[19]

Pre-compiled binaries are provided for some applications with long build times, such as LibreOffice and Mozilla Firefox, but users lose the ability to customize optional features. There are configuration options to reduce compilation times, such as by enabling parallel compilation or using pipes instead of temporary files.[20] Package compilation may also be distributed over multiple computers.[21] Additionally, the user may be able to mount a large filesystem in memory to further speed up the process of building packages. Some approaches have drawbacks and are not enabled by default. When installing the same package on multiple computers with sufficiently similar hardware, the package may be compiled once and a binary package created for quick installation on the other computers.[22]

On December 29th, 2023, it was announced that Gentoo will offer binary packages for download and direct installation. For most architectures, this will be limited to the core system and weekly updates. For amd64 and arm64 however the availability of binary packages reaches over 20 GB. [23]

Portability

As Gentoo is a source-based distribution with a repository describing how to build the packages, adding instructions to build on different machine architectures is particularly easy.[24]

Originally built on the IA-32 architecture, Gentoo has since been ported to many others. It is officially supported and considered stable on IA-32, x86-64, IA-64, PA-RISC, 32-bit and 64-bit PowerPC, 64-bit SPARC, DEC Alpha, and both 32- and 64-bit ARM architectures.[25] It is also officially supported but considered in-development state on MIPS,[26] PS3 Cell Processor, System Z/s390,.[27] Official support for 32-bit SPARC hardware and SuperH have been dropped.[28][29]

Portability towards other operating systems, such as those derived from BSD, including macOS, is under active development by the Gentoo/Alt project. The Gentoo/FreeBSD project already has a working guide based on FreeSBIE,[30] while Gentoo/NetBSD, Gentoo/OpenBSD and Gentoo/DragonFly are being developed.[31] There is also a project to get Portage working on OpenSolaris. There was an unofficial project to create a Gentoo port to GNU Hurd, but it has been inactive since 2006.[32]

It is also possible to install a Gentoo Prefix (provided by a project that maintains alternative installation methods for Gentoo) in a Cygwin environment on Windows, but this configuration is experimental.[33]

Installation

Gentoo may be installed in several ways. The most common way is to use the Gentoo minimal CD with a stage3 tarball (explained below). As with many Linux distributions, Gentoo may be installed from almost any Linux environment, such as another Linux distribution's Live CD, Live USB, or Network Booting using the "Gentoo Alternative Install Guide". A normal install requires a connection to the Internet, but there is also a guide for a network-less install.

On April 3, 2022, it was announced that there would be a new official image with a GUI, called the LiveGUI image. This can be installed onto installation media such as a USB drive or a dual-layer DVD. It includes a large selection of software, including the KDE Plasma 5 desktop environment, image editors, office software, system administration, and installation tools.[34]

Previously, Gentoo supported installation from stage1 and stage2 tarballs; however, the Gentoo Foundation no longer recommends them. Stage1 and stage2 are meant only for Gentoo developers.[35]

Following the initial install steps, the Gentoo Linux install process in the Gentoo Handbook describes compiling a new Linux kernel. This process is generally not required by other Linux distributions. Although this is widely regarded as a complex task, Gentoo provides documentation and tools such as Genkernel to simplify the process. In addition, users may also use an existing kernel known to work on their system by simply copying it to the boot directory, or installing one of the provided pre-compiled kernel packages, and updating their bootloader. Support for installation is provided on the Gentoo forum,[36] Reddit,[37] and IRC.[38]

A Live USB of Gentoo Linux can be created manually, by using various tools, or with dd as described in the handbook.

Stages

Before October 2005, installation could be started from any of three base stages:

  • Stage1 begins with only what is necessary to build a toolchain (the various compilers, linkers, and language libraries necessary to compile other software) for the target system; compiling this target toolchain from another, pre-existing host system is known as bootstrapping the target system.
  • Stage2 begins with a self-hosting (bootstrapped) toolchain for the target system, which is then used to compile all other core userland software for the target.
  • Stage3 begins with a minimal set of compiled user software, with which the kernel and any other additional software are then configured and compiled.

Since October 2005, only the stage3 installations have been officially supported, due to the inherent complexities of bootstrapping from earlier stages (which requires resolving and then breaking numerous circular dependencies).[39] Tarballs for stage1 and stage2 were distributed for some time after this,Шаблон:When although the instructions for installing from these stages had been removed from the handbook[40] and moved into the Gentoo FAQ.[41] Шаблон:As of, only the supported stage3 tarballs are publicly available; stage1 and stage2 tarballs are only "officially" generated and used internally by Gentoo development teams. However, if so desired, a user may still rebuild the toolchain or reinstall the base system software during or after a normal stage3 installation, effectively simulating the old bootstrap process.[42]

Gentoo Reference Platform

From 2003 until 2008, the Gentoo Reference Platform (GRP) was a snapshot of prebuilt packages that users could quickly install during the Gentoo installation process, to give faster access to a fully functional Gentoo installation.[43][44] These packages included KDE, X Window System, OpenOffice, GNOME, and Mozilla.[45] Once the installation was complete, the packages installed as part of the GRP were intended to be replaced by the user with the same or newer versions built through Portage that would be built using the user's system configuration rather than the generic builds provided by the GRP. As of 2011, the GRP is discontinued, the final reference to it appearing in the 2008.0 handbook.[46]Шаблон:Original research inline

Versions

Gentoo follows a rolling release model.

Like other Linux distributions, Gentoo systems have an /etc/gentoo-release file, but this contains the version of the installed sys-apps/baselayout package.

In 2004, Gentoo began to version its Live media by year rather than numerically. This continued until 2008, when it was announced that the 2008.1 Live CD release had been cancelled in favour of weekly automated builds of both Stages 3 and Minimal CDs.[47] On December 20, 2008, the first weekly builds were published.[48] In 2009, a special Live DVD was created to celebrate the Gentoo 10-year anniversary.[49]

Release media version history

Name Date
(Enoch Linux) 0.75 Шаблон:Dts
pre-1.0 Шаблон:Dts
1.0[50] Шаблон:Dts
1.1a Шаблон:Dts
1.2 Шаблон:Dts
1.4 Шаблон:Dts (Gentoo Reference Platform introduced)
1.4 maintenance release 1 Шаблон:DtsШаблон:Citation needed
2004.0[51] Шаблон:Dts[52] (versioning changed to four releases a year)
2004.1 Шаблон:Dts
2004.2 Шаблон:Dts[53]
2004.3 Шаблон:Dts[54]
2005.0[55] Шаблон:Dts[56] (versioning changed to semi-annual releases)
2005.1[57] Шаблон:Dts[58]
2005.1-r1 Шаблон:Dts[59] (maintenance release 1)
2006.0 Шаблон:Dts[60]
2006.1 Шаблон:Dts[61]
2007.0 Шаблон:Dts[62]
2008.0 Шаблон:Dts[63]
Weekly Releases started[64] Шаблон:Dts

Special releases

In 2009, a special Live DVD was released to celebrate Gentoo's tenth anniversary. Initially planned as a one-off, the Live DVD was updated to the latest package versions in 2011 due to its popularity among new users.

Name Date/info
Unreal Tournament 2003 LiveCD Шаблон:Dts[65] - Bootable NVIDIA GPU-accelerated Unreal Tournament 2003 LiveCD, demoed at LinuxWorld Conference and Expo 2003.
10.0 Шаблон:Dts[49] (special edition Live DVD for the 10th anniversary)
10.1 Шаблон:Dts[66] (Bugfix release of Special Live DVD)
11.0 Шаблон:Dts[67] (Anniversary Live DVD is updated to latest package versions)
12.0 Шаблон:Dts[68]
12.1 Шаблон:Dts[69] (With an April Fool's joke named "Install Wizard")
20121221 Шаблон:Dts[70] (Live DVD - End Of World Edition)
20140826 Шаблон:Dts[71] (Live DVD - Iron Penguin Edition)
20160514 Шаблон:Dts[72] (Live DVD - Choice Edition; UEFI, ZFSOnLinux, and writable file systems using AUFS)
20160704[73] Шаблон:Dts[74] (Live DVD - Choice Edition Part Dos)

Profiles

Although Gentoo does not have a concept of versioning the entire system, it does make use of "profiles", which define build configuration for all packages in the system. Major changes, such as changing the layout of how files are installed across the entire system, typically involve a profile upgrade and may require rebuilding all installed software. These profiles are versioned based on the year they were released, and include several variants for each release targeted towards different types of systems (such as servers and desktops). Profiles formerly tracked the versioning of install media, and switched to two-digit year naming after the discontinuation of versioned media. The following new profile versions have been released after 2008.0:

Version Date/info
10.0 Шаблон:Dts[75] (cosmetic name change from 2008.0 profiles)
13.0 Шаблон:Dts[76]
17.0 Шаблон:Dts[77] (C++14 and PIE by default)
17.1 Шаблон:Dts[78] (altered multilib layout for amd64 systems)

Hardened Gentoo

Hardened Gentoo is a project designed to develop and designate a set of add-ons that are useful when a more security focused installation is required.[79] Previously, the project included patches to produce a hardened kernel, but these were discontinued. Other parts of the hardened set, such as SELinux, and userspace hardening remain.[80]

Incidents

In June 2018 the Gentoo GitHub code repository mirror used mainly by developers was hacked after an attacker gained access to an organization administrator's account via deducing the password. Gentoo promptly responded by containing the attack and improving security practices. No Gentoo cryptography keys or signed packages were compromised, and the repository was restored after five days.[81][82][83][84][85]

Logo and mascots

The gentoo penguin is thought to be the fastest underwater-swimming penguin. The name "Gentoo Linux" acknowledges both the Linux mascotШаблон:Snd a penguin called TuxШаблон:Snd and the project's aim to produce a high-performance operating system.[18]Шаблон:Rp

The official Gentoo logo is a stylized 'g' resembling a silver magatama.[86] Unofficial mascots include Larry The Cow[3] and Znurt the Flying Saucer.[87]

Derived distributions

Шаблон:Main There are a number of independently developed variants of Gentoo Linux, including ChromiumOS and Container Linux.

See also

Шаблон:Portal

References

Шаблон:Reflist

External links

Шаблон:Commons

Шаблон:Linux distributions

Шаблон:Authority control

  1. Шаблон:Cite web
  2. Шаблон:Cite web
  3. 3,0 3,1 Шаблон:Cite web
  4. Шаблон:Cite web
  5. Шаблон:Cite web
  6. Шаблон:Cite web
  7. Шаблон:Cite web
  8. Шаблон:Cite web
  9. Шаблон:Cite web
  10. Шаблон:Cite web
  11. Шаблон:Cite web
  12. Шаблон:Cite web
  13. Gentoo Council. Accessed January 6, 2014.
  14. Шаблон:Cite web
  15. GENTOO FOUNDATION, INC.Шаблон:Dead linkШаблон:Cbignore, Corporations Information Inquiry, New Mexico Public Relation Commission. Accessed May 8, 2009.
  16. Шаблон:Cite web
  17. Шаблон:Cite web
  18. 18,0 18,1 18,2 18,3 18,4 Шаблон:Cite book
  19. 19,0 19,1 Шаблон:Cite book
  20. CFLAGS and CXXFLAGS Шаблон:Webarchive, Gentoo Linux x86 Handbook. December 13, 2014. Accessed February 10, 2018.
  21. Distcc Шаблон:Webarchive, Gentoo Linux Wiki. February 2, 2018. Accessed February 10, 2018.
  22. Binary package guide Шаблон:Webarchive, Gentoo Linux Wiki. November 13, 2017. Accessed February 10, 2018.
  23. Шаблон:Cite web
  24. Шаблон:Cite book
  25. Шаблон:Cite web
  26. Шаблон:Cite web
  27. Шаблон:Cite web
  28. Шаблон:Cite web
  29. Шаблон:Cite web
  30. Шаблон:Cite web
  31. Шаблон:Cite web
  32. Шаблон:Cite web
  33. Шаблон:Cite web
  34. Шаблон:Cite web
  35. Шаблон:Cite news
  36. Шаблон:Cite web
  37. Шаблон:Cite web
  38. Шаблон:Cite web
  39. Шаблон:Cite web
  40. Шаблон:Cite web
  41. Шаблон:Cite web
  42. Шаблон:Cite web
  43. Шаблон:Cite news
  44. Шаблон:Cite news
  45. Шаблон:Cite web
  46. Шаблон:Cite web
  47. Шаблон:Cite web
  48. Шаблон:Cite web
  49. 49,0 49,1 Шаблон:Cite web
  50. Шаблон:Cite web
  51. Шаблон:Cite web
  52. Шаблон:Cite web
  53. Шаблон:Cite web
  54. Шаблон:Cite web
  55. Шаблон:Cite journal
  56. Шаблон:Cite web
  57. Шаблон:Cite web
  58. Шаблон:Cite web
  59. Шаблон:Cite web
  60. Шаблон:Cite web
  61. Шаблон:Cite web
  62. Шаблон:Cite web
  63. Шаблон:Cite web
  64. Шаблон:Cite web
  65. Шаблон:Cite web
  66. Шаблон:Cite web
  67. Шаблон:Cite web
  68. Шаблон:Cite web
  69. Шаблон:Cite web
  70. Шаблон:Cite web
  71. Шаблон:Cite web
  72. Шаблон:Cite web
  73. Шаблон:Cite journal
  74. Шаблон:Cite web
  75. Шаблон:Cite web
  76. Шаблон:Cite web
  77. Шаблон:Cite web
  78. Шаблон:Cite web
  79. Шаблон:Cite web
  80. Шаблон:Cite web
  81. Шаблон:Cite web
  82. Шаблон:Cite news
  83. Шаблон:Cite web
  84. Шаблон:Cite web
  85. Шаблон:Cite web
  86. Шаблон:Cite web
  87. Шаблон:Cite web