UP | HOME

YUM添加第三方软件仓库

安装包管理优先级插件

$ yum install yum-priorities
$ vi /etc/yum.repos.d/CentOS-Base.repo
    [base] [updates] [extras]
        priority=5
    [centosplus]
        priority=6

EPEL软件仓库

$ yum install epel-release
$ vi /etc/yum.repos.d/epel.repo
    [epel]
        priority=11

RPMForge软件仓库

$ yum install wget
$ wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
$ rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
$ vi /etc/yum.repos.d/rpmforge.repo
    [rpmforge]
        priority=12

如果想使用第三方稳定版本仓库替换系统仓库,只需要将第三方仓库的priority < 5即可。

Date: 2019-04-02 Tue 22:49

Author: shixiongfei

Created: 2020-09-05 Sat 14:40

Emacs 27.1 (Org mode 9.3)