[Deploy] CentOS yum source, deploy centosyum Source

Source: Internet
Author: User

[Deploy] CentOS yum source, deploy centosyum Source
Install yum Source

A. rpm software package is provided for general software. After this package is installed using the rpm command, a yum repository source is automatically added, and then the software can be installed using yum.

Install the rpm package

rpm -ivh http://repo.somesite.com/somesoftware.rpm

Remove rpm package

rpm -e packagename

 

EPEL

In addition to the built-in centos source, it is estimated that it is a mandatory source.

Introduction

Https://fedoraproject.org/wiki/EPEL/zh-cn

Install

1. Install yum

yum install epel-release

Install Based on search results

2. rpm Installation

rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

If you use CentOS6 address to change to https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

 

RPMForge

Introduction

Https://wiki.centos.org/AdditionalResources/Repositories/RPMForge

Rpm package directory

Http://pkgs.repoforge.org/rpmforge-release/

 

Other sources (CentOS)

Https://wiki.centos.org/AdditionalResources/Repositories

 

 

Yum Priorities

If more sources are installed, this plug-in is required. The priority of the source is used for yum command package search.

Install

yum install yum-priorities

Configuration

Open/Etc/yum/pluginconf. d/priorities. conf

vi /etc/yum/pluginconf.d/priorities.conf

Make sure that the file contains enabled = 1. If you want to disable the yum priority plug-in, change it to enabled = 0.

[main]enabled=1

Add priority configuration in the/etc/yum. repos. d/*. repo file. The priority ranges from 1 ~ The 99 number indicates that 1 has the highest priority. If a source with a lower priority has a newer version of a software, if the source with a higher priority does not have a higher priority, the system cannot install or upgrade the plug-in to the later version.

priority=1

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.