CentOS7常用软件仓库配置.md
作者Lou Xiao创建时间2020-05-10 10:52:00更新时间2020-05-10 10:52:00
本文介绍常用的软件仓库的配置,快速更新软件配置,懒人必备!
所有仓库均使用清华大学开源软件镜像站
海外的云服务使用默认的仓库就能达到很快的速度,不需要特别修改仓库地址。
CentOS官方仓库
1.双击鼠标左键复制此行;2.单击复制所有代码。
1
[base]
2
name=CentOS-$releasever - Base
3
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/os/$basearch/
4
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
5
enabled=1
6
gpgcheck=1
7
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-7
8
9
#released updates
10
[updates]
11
name=CentOS-$releasever - Updates
12
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/updates/$basearch/
13
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
14
enabled=1
15
gpgcheck=1
16
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-7
17
18
#additional packages that may be useful
19
[extras]
20
name=CentOS-$releasever - Extras
21
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/extras/$basearch/
22
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
23
enabled=1
24
gpgcheck=1
25
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-7
26
27
#additional packages that extend functionality of existing packages
28
[centosplus]
29
name=CentOS-$releasever - Plus
30
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/centosplus/$basearch/
31
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
32
gpgcheck=1
33
enabled=1
34
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-7
EPEL仓库(CentOS的准仓库)
[d1] 安装epel
1.双击鼠标左键复制此行;2.单击复制所有代码。
1
yum install epel-release
[d2] 软件仓库配置
1.双击鼠标左键复制此行;2.单击复制所有代码。
1
[epel]
2
name=Extra Packages for Enterprise Linux 7 - $basearch
3
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/$basearch
4
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
5
failovermethod=priority
6
enabled=1
7
gpgcheck=1
8
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
rpmfusion 多媒体仓库
例如: vlc播放器、解码器等
[d1] 安装rpmfusion
1.双击鼠标左键复制此行;2.单击复制所有代码。
1
yum install --nogpgcheck https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/free/el/rpmfusion-free-release-7.noarch.rpm https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
[d2] 软件仓库配置
1.双击鼠标左键复制此行;2.单击复制所有代码。
1
[rpmfusion-free-updates]
2
name=RPM Fusion for EL 7 - Free - Updates
3
baseurl=https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/free/el/updates/7/x86_64/
4
#mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-released-7&arch=$basearch
5
enabled=1
6
gpgcheck=1
7
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-el-7
8
9
[rpmfusion-nonfree-updates]
10
name=RPM Fusion for EL 7 - Nonfree - Updates
11
baseurl=https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/nonfree/el/updates/7/x86_64/
12
#mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-el-updates-released-7&arch=$basearch
13
enabled=1
14
gpgcheck=1
15
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-el-7
REMI 仓库
主要提供最新的php等软件包
[d1] 安装REMI软件包
1.双击鼠标左键复制此行;2.单击复制所有代码。
1
yum install --nogpgcheck https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-7.rpm
[d2] 配置软件仓库
1.双击鼠标左键复制此行;2.单击复制所有代码。
1
[remi]
2
name=Remi's RPM repository for Enterprise Linux 7 - $basearch
3
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/7/remi/$basearch/
4
enabled=0
5
gpgcheck=1
6
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
7
8
[remi-modular]
9
name=Remi's Modular repository for Enterprise Linux 7 - $basearch
10
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/7/modular/$basearch/
11
#mirrorlist=https://rpms.remirepo.net/enterprise/7/modular/httpsmirror
12
mirrorlist=http://cdn.remirepo.net/enterprise/7/modular/mirror
13
enabled=0
14
gpgcheck=1
15
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
16
17
18
[remi-safe]
19
name=Safe Remi's RPM repository for Enterprise Linux 7 - $basearch
20
#baseurl=http://rpms.remirepo.net/enterprise/7/safe/$basearch/
21
#mirrorlist=https://rpms.remirepo.net/enterprise/7/safe/httpsmirror
22
mirrorlist=http://cdn.remirepo.net/enterprise/7/safe/mirror
23
enabled=0
24
gpgcheck=1
25
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
26
27
[remi-php71]
28
name=Remi's PHP 7.1 RPM repository for Enterprise Linux 7 - $basearch
29
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/7/php71/$basearch/
30
#mirrorlist=https://rpms.remirepo.net/enterprise/7/php74/httpsmirror
31
mirrorlist=http://cdn.remirepo.net/enterprise/7/php74/mirror
32
enabled=0
33
gpgcheck=1
34
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
35
36
37
[remi-php74]
38
name=Remi's PHP 7.4 RPM repository for Enterprise Linux 7 - $basearch
39
baseurl=https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/7/php74/$basearch/
40
#mirrorlist=https://rpms.remirepo.net/enterprise/7/php74/httpsmirror
41
mirrorlist=http://cdn.remirepo.net/enterprise/7/php74/mirror
42
enabled=0
43
gpgcheck=1
44
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
文章目录