yum (software)

YUM
YUM running an update on Fedora 16
Developer(s) Seth Vidal
Repository Edit this at Wikidata
Written in Python[1]
Operating system Linux
Type Package management system
License GPL v2
Website yum.baseurl.org

The Yellowdog Updater, Modified (YUM) is a libre and open-source command-line package-management utility for computers running the GNU/Linux operating system using the RPM Package Manager.[2] Though YUM has a command-line interface, several other tools provide graphical user interfaces to YUM functionality.

YUM allows automatic updates, package and dependency management, on RPM-based distributions.[3] Like the Advanced Package Tool (APT) from Debian, YUM works with software repositories (collections of packages), which can be accessed locally[4] or over a network connection.

Under the hood, YUM depends on RPM, which is a packaging standard for digital distribution of software, which automatically uses hashes and digisigs to verify the authorship and integrity of said software; unlike some app stores, which serve a similar function, neither YUM nor RPM provide built-in support for proprietary restrictions on copying of packages by endusers. YUM is implemented as libraries in the Python programming language, with a small set of programs that provide a command-line interface.[5] GUI-based wrappers such as YUM Extender (yumex) also exist.[6] A rewrite of YUM based on libsolv named DNF is currently being developed and replaced YUM as the default package manager in Fedora 22.[7]

History

The original package manager, Yellowdog UPdater (YUP) was developed in 1999-2001 by Dan Burcaw, Bryan Stillwell, Stephen Edie, and Troy Bengegerdes[2] at Terra Soft Solutions (under the leadership of then CEO Kai Staats) as a back-end engine for a graphical installer of Yellow Dog Linux.[2].

As a full rewrite of YUP, YUM evolved primarily to update and manage Red Hat Linux systems used at the Duke University Department of Physics by Seth Vidal and Michael Stenner. Vidal continued to contribute to YUM until his death in a Durham, North Carolina bicycle accident on 8 July 2013.[8][9][10]

In 2003 Robert G. Brown at Duke published documentation for YUM.[5] Subsequent adopters included[5] Fedora, CentOS, and many other RPM-based Linux distributions, including Yellow Dog Linux itself, where YUM replaced the original YUP utility — last updated on SourceForge in 2001.[11] By 2005, it was estimated to be in use on over half of the Linux market[1], and by 2007 YUM was considered the "tool of choice" for RPM-based Linux distributions.[12]

YUM aimed to address both the perceived deficiencies in the old APT-RPM,[13] and restrictions of the Red Hat up2date package management tool. YUM superseded up2date in Red Hat Enterprise Linux 5 and later.[14] Some authors refer to YUM as the Yellowdog Update Manager, or suggest that "Your Update Manager" would be more appropriate.[15][16] A basic knowledge of YUM is often included as a requirement for Linux system-administrator certification.[3] The GNU General Public License of YUM allows the free and open-source software to be freely distributed and modified without any royalty, if other terms of the license are honored.[2]

Operations

YUM can perform operations such as:

  • installing packages
  • deleting packages
  • updating existing installed packages
  • listing available packages[17]
  • listing installed packages[17]

Extensions

Screenshot of Yum Extender (yumex)

The 2.x versions of YUM feature an additional interface for programming extensions in Python that allows the behavior of YUM to be altered. Certain plug-ins are installed by default.[18] A commonly installed[19] package yum-utils, contains commands which use the YUM API, and many plugins.

Graphical user interfaces, known as "front-ends", allow easier use of YUM. PackageKit and Yum Extender (yumex) are two examples.[6]

Metadata

Information about packages (as opposed to the packages themselves) is known as metadata. These metadata are combined with information in each package to determine (and resolve, if possible) dependencies among the packages. The hope is to avoid a situation known as dependency hell. A separate tool, createrepo, sets up YUM software repositories, generating the necessary metadata in a standard XML format (and the SQLite metadata if given the -d option).[20][21] The mrepo tool (formerly known as Yam) can help in the creation and maintenance of repositories.[22]

YUM's XML repository, built with input from many other developers, quickly became the standard for RPM-based repositories.[21] Besides the distributions that use YUM directly, SUSE Linux 10.1[23] added support for YUM repositories in YaST, and the Open Build Service repositories use the YUM XML repository format metadata.[21]

YUM automatically synchronizes the remote meta data to the local client, with other tools opting to synchronize only when requested by the user. Having automatic synchronization means that YUM cannot fail due to the user failing to run a command at the correct interval.[24][25]

See also

  • .rpm - the packaging file format used by YUM
  • DNF - a rewrite of YUM based on libsolv

References

  1. 1 2 Jang, Michael H. (14 December 2005). "Chapter 7 – Setting Up a YUM Repository". Linux Patch Management: Keeping Linux Systems Up to Date (PDF). Prentice Hall Professional.
  2. 1 2 3 Brown, Robert G. "YUM (Yellowdog Updater, Modified) HOWTO - Introduction". Duke Physics. Retrieved 12 July 2013.
  3. 1 2 Shields, Ian (11 May 2010). "RPM and YUM package management". Learn Linux, 101. IBM. Retrieved 12 July 2013.
  4. "Creating a Local YUM Repository Using an ISO Image". Oracle. Retrieved 12 July 2013.
  5. 1 2 3 Brown, Robert G. (17 December 2003). "YUM: Yellowdog Updater, Modified" (PDF). Retrieved 13 July 2013.
  6. 1 2 "Yum Extender". Yumex Homepage. Retrieved 13 July 2013.
  7. Miller, Matthew (11 June 2014). "Board Meeting, Rawhide Rebuilt, Firewall Debate, ARM 64, and DNF as Yum Replacement (5tFTW 2014-06-10)". Fedora Magazine. Retrieved 4 May 2016.
  8. "Seth Vidal, creator of "yum" open source software, killed in bike accident off Hillandale Rd". Durham io: The Daily Durham. 9 July 2013. Retrieved 13 July 2013.
  9. "Thank you, Seth Vidal". Red Hat. 10 July 2013. Retrieved 13 July 2013.
  10. Bort, Julie (9 July 2013). "36-Year-Old Open Source Guru Seth Vidal Has Been Tragically Killed". Business Insider. Retrieved 13 July 2013.
  11. "Yellow Dog Update Program". SourceForge repository. Retrieved 18 July 2013.
  12. Fusco, John. The Linux Programmer's Toolbox. Pearson Education. ISBN 9780132703048.
  13. Murphy, David (23 July 2004). "How to run your own yum repository". Linux Foundation. Retrieved 12 July 2013.
  14. "What are the yum equivalents of up2date and rpm common tasks on Red Hat Enterprise Linux?". Red Hat.
  15. Sweeney, Michael (2005). Network Security Using Linux. p. 84. ISBN 9781411621770.
  16. Negus, Christopher; Bresnahan, Christine (2012). Linux Bible. John Wiley & Sons. p. 598. ISBN 9781118286906.
  17. 1 2 Jang, Michael H. (2006). Linux Patch Management: Keeping Linux Systems Up to Date. Bruce Perens' Open Source series. Prentice Hall Professional. p. 199. ISBN 9780132366755. Retrieved 26 August 2014.
  18. "Yum Plug-ins". Red Hat. Retrieved 12 July 2013.
  19. "Maintaining yum". CentOS. Retrieved 12 July 2013.
  20. "createrepo(8)". Linux manual page. Retrieved 12 July 2013.
  21. 1 2 3 "Standards Rpm Metadata". openSUSE. Retrieved 12 July 2013.
  22. "mrepo". Freecode. Retrieved 12 July 2013.
  23. "SUSE Linux 10.1 Alpha 2 is ready". Archived from the original on February 8, 2006. Retrieved 12 July 2013.
  24. Schmitz, Dietrich T. "YUM vs. APT: Which is Best?".
  25. "'Linux Advocates' Throws in the Towel i.e. previous link is dead". FOSS Force.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.