Complete Linux RPM and YUM package management guide (1)

Source: Internet
Author: User

This article describes how to use RPM and YUM package management tools to manage packages on Linux. Learning:

Prerequisites

To make the most effective use of the articles in this series, you should have basic Linux knowledge and prepare a Linux system to use the commands described in this article. Sometimes the output formats of different versions of the program are different, so the results you get may not always be the same as the list and diagram shown here, especially many outputs are highly dependent on the packages already installed on the system. Your own output may be very different, but you should be able to see what is important in common.

Package management overview

In the past, many Linux programs were released in the form of source code. Users built the source code as the required program or assembly. The Source Code also included the necessary manual pages and configuration files. Currently, most Linux publishers use pre-built programs or assemblies called packages to facilitate installation on the release. This article describes how to install, update, and delete a package management tool. This article focuses on Red Hat Package Manager (RPM) developed by Red Hat, and Yellowdog Updater Modified (YUM), which was initially developed by the Department of Physics at Duke University to manage the Red Hat Linux system ).

From the user's perspective, basic package management functions are provided by commands. Linux developers have been committed to making Linux easier to use. They have developed other tools, including GUI tools, to supplement basic tools, which hides some of the complexity of basic tools for end users. In this article, we will mainly discuss basic tools in Linux, 101: Debian package management, but we will also mention some other tools so that you can continue to study them.

RPM, YUM, and APT are applicable to Debian systems. Both can install and delete packages. Information about installed packages is stored in the database. They all have basic command line functions and provide user-friendly interfaces through other tools. They can all get packages from the Internet.

When installing a Linux system, many packages are usually installed. This collection may be customized based on the purpose of the system, such as servers, desktops, or development workstations. Sometimes, you may need to install new packages to add new features, update existing packages, or even delete packages that are no longer needed or replaced by new packages. Let's take a look at how to complete these tasks and solve some related problems, such as finding a package containing a command.

RPM

Red Hat introduced RPM in 1995. RPM is now the package management system used in Linux Standard Base (LSB. Rpm Command Options are divided into three groups:

In this article, we focus on the first two sets of Command Options. On the RPM manual page, you can find information about other features.

Note that rpm is the main command for operating RPM, And. rpm is the extension used by RPM files. Therefore, "One rpm" or "XX rpm" generally refer to RPM files, while rpm usually refers to commands.

YUM

YUM has added automatic update and package management in the RPM System, including dependency management. Like Debian Advanced Packaging Tool (APT), YUM also uses the repository in addition to the packages installed on the system. A repository is a collection of packages and can be accessed through a network connection.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.