Yum application in RHEL5

Source: Internet
Author: User
Article Title: Yum application in RHEL5. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I. yum development and functions

In linux system maintenance, administrators often encounter software package dependency problems and sometimes cannot solve them. For example, when installing the library file, you often report errors and say you are dependent on other software packages. Because of this problem, linux fans have been trapped. Software enthusiasts in the open-source community began to develop tools to solve this problem. For example, Yellow Dog's YUM (Yellow dog Update, Modified ), debian's APT (Advanced Packaging tool) and other tools are developed to solve the dependency between rpm packages. Yum was initially developed by Terra soft, a developer of the yellow dog release and written in python. It was called yum (yellow dog updater ), later, this name will be improved by Duke University's linux @ Duke team. yum is designed to automate upgrades, install/remove rpm packages, and collect rpm package-related information, check the dependency and automatically prompt the user to solve the problem. The key is that there is a reliable repository (software repository), which can be an http, ftp, and operating system local machine, however, the rpm header must be included. The header includes the rpm package information, including descriptions, functions, provided files, dependencies, and so on. These headers are collected and analyzed, to automate the remaining tasks.

Yum has the following functions:

1. Automatically solves the package dependency problem and can add/delete/update the RPM package

2. Easy management of a large number of system updates

3. Multiple resource libraries can be configured at the same time.

4. simple configuration of multiple resource libraries (Repository)

5. Maintain consistency with RPM data

6. There is a detailed log to check when the software is upgraded and installed.

Ii. yum Repository:

A repository is a pre-prepared directory or a website that contains software packages and index files. yum can automatically locate and obtain the correct RPM software package in the repository, in this way, you do not need to manually search for and install new applications and upgrade patches. You only need to use one command to update all the software in the system. You can also find and install new software based on the specified search targets.

Warehouse category:

The configuration of the local repository is as follows:
1. Mount the rhel5DVD to/media/cdrom/

2. Modify the repo file (it must end with repo in the/etc/yum. repos. d/directory)

Modify the file as follows:

RHEL5-Server

Name = RHEL5-Server

Baseusrl = file: // media/cdrom/Server default rpm package installation path

Gpgcheck = 1

Enabled = 1

Gpgkey = file: // media/cdrom/RPM-GPG-KEY-redhat-release

RHEL5-VT

Name = RHEL5-VT

Baseusrl = file: // media/cdrom/VT

Gpgcheck = 1

Enabled = 1

Gpgkey = file: // media/cdrom/RPM-GPG-KEY-redhat-release

RHEL5-Cluster

Name = RHEL5-Server

Baseusrl = file: // media/cdrom/Cluster

Gpgcheck = 1


Enabled = 1
Gpgkey = file: // media/cdrom/RPM-GPG-KEY-redhat-release

RHEL5-ClusterStorage

Name = RHEL5-ClusterStorge]

Baseusrl = file: // media/cdrom/ClusterStorage

Gpgcheck = 1

Enabled = 1

Gpgkey = file: // media/cdrom/RPM-GPG-KEY-redhat-release

Configuration File Content Overview:

The name of the warehouse is in [].

Name indicates the location of the repository.

Location of the baseurl Repository

Enabled: whether to enable this repository. If it is set to 1, it is used. If it is set to 0, it is disabled.

Gpgcheck whether to check the GPG signature (used to verify whether the package to be installed is officially redhat)

GPGKEY is the storage address. We need to use the following command to import it to this signature to use this function.

Bytes ---------------------------------------------------------------------------------------------

Next we will copy the files on the CD to the system for yum repository configuration.

[1] [2] Next page

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.