Wednesday, May 29, 2024
notice

How to solve the bash: yum: command not found error

The newly installed CentOS 7 prompts "no module named yum" when installing LNMP, and then starts to work on YUM. After a lot of trouble, YUM is deleted... faint

Solution: - bash: yum: command not found error

stay http://mirrors.163.com/centos/7/os/x86_64/Packages/ Download the following RPM installation package


 wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-150.el7.centos.noarch.rpm wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm

Installation must add rpm -ivh –force –nodeps Otherwise, an error will be reported


 rpm -ivh –force –nodeps python-iniparse-0.4-9.el7.noarch.rpm rpm -ivh –force –nodeps yum-metadata-parser-1.1.4-10.el7.x86_64.rpm rpm -ivh –force –nodeps yum-3.4.3-150.el7.centos.noarch.rpm rpm -ivh –force –nodeps yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm

Solution: no module named yum error
download http://yum.baseurl.org/wiki


 wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz tar -zxvf yum-3.4.3.tar.gz cd yum-3.4.3
 ./yummain.py update -y
Original article, reprint please specify: reprint from Glory Blog
Link to this article: How to solve the bash: yum: command not found error

About Glory Blog

A bad pen is better than a good memory.

Post reply