Software:GNU Guix System
Developer | GNU Project[1][2] |
---|---|
OS family | Linux (Unix-like) |
Working state | Current[3] |
Source model | Free software, FSDG |
Marketing target | Desktop |
Package manager | GNU Guix |
Platforms | x86_64, i686, aarch64, armv7, powerpc64le |
Kernel type | Monolithic: Linux-libre (operational) Microkernel: GNU Hurd (under development) |
Userland | GNU |
License | GPL |
Official website | guix |
GNU Guix System or Guix System[4][5] (previously known as GuixSD[6]) is a rolling release, free and open source Linux distribution built around the GNU Guix package manager.[7][8] It enables a declarative operating system configuration[9] and allows system upgrades which the user can rollback.[10] It uses the GNU Shepherd init system[11][12] and the Linux-libre kernel, with support of the GNU Hurd kernel under development.[13] On February 3, 2015, the Free Software Foundation added the distribution to its list of endorsed free Linux distributions.[14] The Guix package manager and the Guix System drew inspiration from and were based on the Nix package manager and NixOS respectively.[15]
Architecture support
The following CPU architectures are supported:[16]
Features
System services
System services, which are defined in Guile Scheme,[19] enable the user to declaratively compose the configuration of daemons and background services and specify configurations. This enables the user, within a single configuration file or modularized configuration, to configure the whole operating system (e.g., to have a Tor proxy, a ssh server, and a webserver serving guix-web via nginx on a specific port at bootup). They can:[20]
- generate files in the filesystem (needed by some applications e.g. files in /etc)
- run any code for setting up daemons
- create specific user and group accounts (e.g. a database user for PostgreSQL)
GNU Shepherd init system
The Guix System uses the GNU Daemon Shepherd, formerly known as "dmd" ("Daemon managing Daemons"), as its init system, which is developed in tandem with Guix and is written and configurable in Guile.[21] It supplies user-space functionality asynchronously as services, which under Shepherd are generic functions and object data types which it uses to extend the base operating system in a defined way. In contrast to systemd, a userspace shepherd process runs as the user. Central to the Shepherd model of user space initialization is the concept of the extension, a form of composability whereby services are designed to be layered onto other services, augmenting them with more elaborate or specialised behaviours as desired.[22] This expresses the instantiation-based dependency relationships found in many modern init systems,[23] making the system modular, but also allows services to interact variadically with other services in arbitrary ways, e.g. a service which extends two other services, requiring only one to be present, but readily extending the second one if it is later instantiated without the need for any further reconfiguration or setup.
Shepherd also provides virtual services which allow dynamic dispatch over a class of related service objects, such as all those which instantiate a mail transfer agent (MTA) for the system.[24] A system governed via the Shepherd daemon can represent its user space as a directed acyclic graph, with the "system-service," which is responsible for early phases of boot and init, as its root, and all subsequently initialized services as extensions to system-service functionality, either directly or transitively over other services.[22][25]
It is intended to be highly programmable by the system administrator using Guile, but it can also be used to manage per-user profiles of unprivileged daemons and services.[26] Its services and configuration are stored uniformly as object-oriented Scheme code, and while a core set of services are provided with the basic Guix System,[27] arbitrary new services can be flexibly declared, and through Guile's object system, GOOPS, existing services can be redefined at the user's discretion by asking the Shepherd to dynamically rewrite services in specified ways on instantiation.[28][29]
GNU Shepherd was originally designed to work with GNU Hurd, and was later adopted by Guix System.[30]
Parameterized Packages
With Guix's model of building every package from source, Guix is able to take advantage of this and include compile-time options for almost all of its packages. Parameterized packages represent an innovative package transformation approach that extends its capability to finely adjust compile-time settings. This includes tasks like eliminating redundant dependencies or configuring a package to support only specific locales. The applications of this advancement are diverse, spanning from high-performance computing to embedded systems. Additionally, it has the potential to address some of Linux's challenges, such as oversized binary files and complex dependency structures. In the case of substitutes, it is still unknown how the combination of parameters will be treated, however it is suggested that important combinations should be included in the repository. If you are familiar with Gentoo Linux, this should remind you of their USE flags. This is all still being worked on, and as such is yet to be seen in an official Guix release. [31]
Release and stability
To date, the Guix System is dependent on unstable git repository development[32] shared with Guix but enables users or organizations to set up stable release channels themselves via the channel-feature.[33]
Updates
Packages in Guix are generally very up-to-date[according to whom?] thanks to the lack of a package maintainer bottlenecks. Anyone can contribute an update subject to community approval and the process is assisted by tools such as guix refresh.[34]
Changes to the git repository are peer-reviewed by community members and committed by one of the 45 people with commit access.[35] In practice these builds sometimesTemplate:How often cause system breakages for users because of a typo or similar error, but these are often solved within minutes. The way Guix pull operates means users retain a working system in the meantime.[citation needed]
Roll-back
If a system update leaves users with a broken system, users can easily roll back individual packages as well as the whole system state with a simple command:guix package --roll-back
[36]
This means that the kind of stable channel that is very common in other Linux distributions is no longer needed for users who are willing to report a bug and wait a few minutes, when trying to update via guix pull. This is accomplished by a combination of Guix's functional package manager, which treats each package and system configuration as an immutable and reproducible entity,[37] and the generation system which maintains a history of system configurations as "generations." These generations are stored as separate profiles, which allow you to roll back to any previous configuration,[38] and you can see these generations withguix package --list-generations
.
Reception
Jesse Smith from DistroWatch Weekly reviewed GNU Guix System 0.15.0 (at the time named GuixSD), and said, "GuixSD has a package manager that I like", but criticized the limited hardware support and its limited documentation.[39] The documentation has since then been expanded and improved with videos[40] and a cookbook[41] in six languages with tutorials, how-to guides and examples.
See also
- GNU Guix
- Debian GNU/Hurd
- Comparison of Linux distributions
- NixOS – A similar operating system, which inspired GNU Guix[42]
References
- ↑ "About — GuixSD". gnu.org. https://www.gnu.org/software/guix/about.
- ↑ "GNU/Linux FAQ - GNU Project - Free Software Foundation". Free Software Foundation. https://www.gnu.org/gnu/gnu-linux-faq.html.
- ↑ "Download — GNU Guix". http://guix.gnu.org/download/.
- ↑ "About — GNU Guix". https://guix.gnu.org/en/about/.
- ↑ "Free GNU/Linux distributions". https://www.gnu.org/distros/free-distros.html.
- ↑ "What to call Guix?" (Mailing list). gnu-system-discuss. 2015-01-15. Archived from the original on August 7, 2020. Retrieved August 3, 2020.
- ↑ "List of Free GNU/Linux Distributions". https://www.gnu.org/distros/free-distros.html.
- ↑ "Guix: A New Package Manager & GNU Distribution". Phoronix. https://www.phoronix.com/scan.php?page=news_item&px=MTIzNjY.
- ↑ "Using the Configuration System". https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html.
- ↑ "Package Management". https://www.gnu.org/software/guix/manual/html_node/Package-Management.html.
- ↑ "Programming Interface (GNU Guix Reference Manual)". https://guix.gnu.org/manual/en/html_node/Programming-Interface.html.
- ↑ "Guix: A New Package Manager & GNU Distribution - Phoronix". https://www.phoronix.com/scan.php?page=news_item&px=MTIzNjY.
- ↑ "GNU Guix & GuixSD 0.12.0 released" (Mailing list). guix-devel. 2016-12-21. Archived from the original on August 1, 2020. Retrieved August 3, 2020.
- ↑ "FSF adds Guix System Distribution to list of endorsed distributions". Free Software Foundation. 3 February 2015. http://www.fsf.org/news/fsf-adds-guix-system-distribution-to-list-of-endorsed-distributions.
- ↑ "GNU Guix Reference Manual - Acknowledgments". https://guix.gnu.org/en/manual/en/guix.html#Acknowledgments.
- ↑ "Download". https://guix.gnu.org/download/.
- ↑ Mathieu Othacehe. "Porting GuixSD to ARMv7". https://www.gnu.org/software/guix/blog/2017/porting-guixsd-to-armv7/.
- ↑ Marusich, Chris; Le Bouter, Léo (April 12, 2021). "New Supported Platform: powerpc64le-linux". https://guix.gnu.org/en/blog/2021/new-supported-platform-powerpc64le-linux/.
- ↑ "guix.git". http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services.
- ↑ Wurmus, Ricardo. "Re: Help with preparing to move from Arch Linux to Guix" (Mailing list). Archived from the original on August 1, 2020. Retrieved 11 May 2019.
- ↑ "guix-devel mailing lists". https://lists.gnu.org/archive/html/guix-devel/2016-01/msg00274.html.
- ↑ 22.0 22.1 "GNU Guix Reference Manual: Service Composition". GNU Project. https://www.gnu.org/software/guix/manual/html_node/Service-Composition.html#Service-Composition.
- ↑ "systemd: Unit Dependencies and Order". Fedora Magazine. November 25, 2015. https://fedoramagazine.org/systemd-unit-dependencies-and-order/.
- ↑ "The GNU Shepherd Manual: Jump Start". GNU Project. https://www.gnu.org/software/shepherd/manual/html_node/Jump-Start.html#Jump-Start.
- ↑ "GNU Guix Reference Manual: Shepherd Services". GNU Project. https://www.gnu.org/software/guix/manual/html_node/Shepherd-Services.html#Shepherd-Services.
- ↑ "The GNU Shepherd Manual". GNU Project. https://www.gnu.org/software/shepherd/manual/html_node/Introduction.html#Introduction.
- ↑ "GNU Guix Reference Manual: Services". GNU Project. https://www.gnu.org/software/guix/manual/html_node/Services.html#Services.
- ↑ "GNU Guix Reference Manual: Service Types and Services". GNU Project. https://www.gnu.org/software/guix/manual/html_node/Service-Types-and-Services.html#Service-Types-and-Services.
- ↑ "GNU Guix Reference Manual: Using the Configuration System". GNU Project. https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html#Using-the-Configuration-System.
- ↑ "GNU Shepherd". GNU project. https://www.gnu.org/software/shepherd/.
- ↑ Shah, Sarthak. "Parameterized Packages for GNU Guix". https://guix.gnu.org/blog/2023/parameterized-packages-for-gnu-guix/.
- ↑ "Re: We need an RFC procedure" (Mailing list). Archived from the original on August 1, 2020. Retrieved 27 April 2019.
- ↑ "Channels". https://www.gnu.org/software/guix/manual/en/html_node/Channels.html.
- ↑ "Invoking guix refresh". https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-refresh.html#Invoking-guix-refresh.
- ↑ "GNU Guix - Summary: Project Memberlist". https://savannah.gnu.org/project/memberlist.php?group=guix.
- ↑ "Invoking guix system". https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-system.html.
- ↑ Courtès, Ludovic (2013). "Functional Package Management with Guix". p. 2. arXiv:1305.4584 [cs.PL].
- ↑ "Multi-dimensional transactions and rollbacks, oh my!". https://guix.gnu.org/en/blog/2018/multi-dimensional-transactions-and-rollbacks-oh-my/.
- ↑ Smith, Jesse. Guix System Distribution 0.15.0 and ReactOS 0.4.9. https://distrowatch.com/weekly.php?issue=20180827#guixsd. Retrieved 2018-08-30.
- ↑ "Videos". http://guix.gnu.org/videos/.
- ↑ "Cookbook". http://guix.gnu.org/cookbook/.
- ↑ "About — GuixSD" (in en). https://www.gnu.org/software/guix/about/.
External links
Original source: https://en.wikipedia.org/wiki/GNU Guix System.
Read more |