linux快速安装yum
时间: 2023-08-26 14:17:13 浏览: 94
要在Linux上快速安装yum,您可以按照以下步骤进行操作:
1. 解决rpm的版本问题后,执行以下命令安装必要的软件包:
```
rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm
rpm -ivh python-urlgrabber-3.10-8.el7.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
rpm -ivh yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
rpm -ivh yum-3.4.3-158.el7.centos.noarch.rpm
```
2. 下载CentOS7-Base-163.repo配置文件并将其放置在/root/目录下。
3. 执行以下命令以删除旧版本的yum和python-urlgrabber:
```
rpm -qa | grep yum | xargs rpm -e --nodeps
rpm -qa | grep python-urlgrabber | xargs rpm -e --nodeps
```
完成以上步骤后,您应该已经成功地在Linux上快速安装了yum。请确保您的操作系统版本和软件包的版本与提供的命令相匹配。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [【Linux】安装yum源](https://blog.csdn.net/weixin_51414096/article/details/125927825)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文