centos 7安装额外的yum源
时间: 2023-07-19 20:33:55 浏览: 42
可以按照以下步骤安装额外的yum源:
1. 首先,使用root用户登录到CentOS 7系统。
2. 打开终端并运行以下命令,以安装wget:
```
yum install wget
```
3. 运行以下命令以下载并安装EPEL(Extra Packages for Enterprise Linux):
```
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
```
4. 运行以下命令以下载并安装Remi存储库:
```
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -ivh remi-release-7.rpm
```
5. 运行以下命令以下载并安装Nux Dextop存储库:
```
wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm
```
6. 最后,运行以下命令以清除yum缓存并重新生成yum缓存:
```
yum clean all
yum makecache
```
现在,您已成功安装了额外的yum源。