Mirror source switch
First switch the yum source to the domestic image source
backup the original source image file
# cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
Download the new CentOS- Base.repo
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
If WGet is not installed, you can use ?Yum install WGet to execute CentOS after installation- Base.repo Installation of
on /etc/ yum.repos .d/CentOS- Media.repo source file configuration file, changed to invalid
enable=0
Yum cache generation
#yum clean all #yum makecache #yum update
CentOS development tools installation
yum groupinstall "Development Libraries"
yum groupinstall "Development Tools"
yum install ncurses-devel zlib-devel texinfo gtk+-devel gtk2-devel qt-devel tcl-devel tk-devel libX11-devel kernel-headers kernel-devel
Similar Posts:
- Centos6 Yum Error: Cannot find a valid baseurl for repo: base
- When centos7 uses yum, file contains no section headers
- Yum Install Docker and Upgrade Yum Storage error: No packages marked for update
- Loaded plugins: rhnplugin, security This system is not registered with RHN.
- How to Solve Yum Install Development Tools Error
- This system is not registered with an entitlement server. You can use subscription-manager to reg…
- [Solved] Centos6.8 yum Error: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid
- Python upgrade resulted in an error using yum
- Centos6.8 yum Error & Fix YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid
- Solve the error of centos7 using Yum installation software: cannot find a valid baseurl for repo: base / 7 / x86_ sixty-four