CentOS下yum 命令无法使用,重新安装yum
2018-04-05 14:19
363 查看
在SSH里面依次输入下面的命令:
1,下载最新的yum-3.2.28.tar.gz并解压
wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz tar xvf yum-3.2.28.tar.gz
2,进入目录,运行安装
cd yum-3.2.28
yummain.py install yum
结果提示错误: CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/
后来经猫哥提醒,原来是缺少配置文件。在etc目录下面新建yum.conf文件,然后再次运行 yummain.py install yum,顺利完成安装。
3,最后更新系统,全部搞定,收工。^_^
yum check-update
yum update
yum clean all
1,下载最新的yum-3.2.28.tar.gz并解压
wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz tar xvf yum-3.2.28.tar.gz
2,进入目录,运行安装
cd yum-3.2.28
yummain.py install yum
结果提示错误: CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/
后来经猫哥提醒,原来是缺少配置文件。在etc目录下面新建yum.conf文件,然后再次运行 yummain.py install yum,顺利完成安装。
3,最后更新系统,全部搞定,收工。^_^
yum check-update
yum update
yum clean all
相关文章推荐
- CentOS 7 - 最小化安装后,解决无法使用yum命令问题!!
- CentOS 7 - 最小化安装后,解决无法使用yum命令问题
- CentOS6.5使用yum命令方便快捷安装Nginx
- 【转】CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS6.5使用yum命令方便快捷安装Nginx
- MySQL学习5_CentOS下Mysql数据库(不使用yum命令)的安装与配置
- centOS系统使用yum命令安装rz、sz
- CentOS下使用yum命令安装计划任务程序crontab
- CentOS使用yum命令安装vsftpcentos
- 关于centos使用yum命令安装时出现 Invalid GPG Key 错误到解决方法。
- CentOS7 使用yum命令安装Java1.8
- CentOS6.5使用yum命令方便快捷安装Nginx
- CentOS使用yum命令安装vsftp
- centos7使用yum安装mariaDB(开源MySQL)无法启动的解决办法
- CentOS6.5使用yum命令方便快捷安装Nginx
- Centos使用yum命令安装中文语言包(fonts-chinese.noarch,m17n-db-common-cjk)
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***” - ybq155
- 由于CentOS的系统安装了epel-release-latest-7.noarch.rpm 导致在使用yum命令时出现Error: xz compression not available问题。
- CentOS下使用yum命令安装计划任务程序crontab