linuxcentos7安装yum
时间: 2024-01-06 22:24:23 浏览: 175
以下是在Linux CentOS 7上安装yum的步骤:
1. 进入到/etc/yum.repos.d/目录:
```shell
cd /etc/yum.repos.d/
```
2. 下载epel-6.repo文件:
```shell
wget http://files.tttidc.com/centos6/epel-6.repo
```
3. 下载所需的RPM包:
```shell
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-*.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-*.x86_64.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-*.centos.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-*.noarch.rpm
```
4. 安装下载的RPM包:
```shell
rpm -ivh python-iniparse-*.noarch.rpm
rpm -ivh yum-metadata-parser-*.x86_64.rpm
rpm -ivh yum-*.centos.noarch.rpm
rpm -ivh yum-plugin-fastestmirror-*.noarch.rpm
```
5. 完成安装后,可以使用yum命令进行软件包的安装和管理。
阅读全文