CentOS8 configuration yum source (reproduced)

Reposted from: How to install yum source on centos8 (detailed steps)_zxl2605's blog-CSDN blog_centos8 yum

enter directory

cd /etc/yum.repos.d //Enter the /etc/yum.repos.d directory
1
to view and delete all configuration files in the /etc/yum.repos.d directory

ll //View all files in the current directory
rm -rf ./* //Delete all current files
 

Download the mirror source of centos8

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

ls //View files
yum -y clean all //Clear all files
yum -y makecache //Create a cache

yum repolist //Check the yum warehouse information
so that the yum source is installed
and then you can install whatever you want
———————————————
Copyright statement: this article It is an original article of CSDN blogger "zxl2605", following the CC 4.0 BY-SA copyright agreement, please attach the original source link and this statement for reprinting.
Original link: https://blog.csdn.net/qq_50854662/article/details/120739872

Guess you like

Origin blog.csdn.net/bodybo/article/details/127355579