ls /etc/yum.repos.d
sudo nano /etc/yum.repos.d/wyc.repo
# 写入仓库配置文件
[wyc]
name=wyc ISO
baseurl=file:///aenv/iso_repo
enabled=1
gpgcheck=0
# 更新仓库缓存
sudo yum clean all
sudo yum makecache




//临时
sudo yum --disablerepo=* --enablerepo=wyc  --installroot=/aenv/iso_root install gcc-c++ bison flex texinfo gmp-devel mpfr-devel libmpc-devel -y && \
sudo yum --disablerepo=* --enablerepo=wyc  --installroot=/aenv/iso_root groupinstall "Development Tools" -y
sudo yum --disablerepo=* --enablerepo=wyc --installroot=/aenv/iso_root install openssl openssl-devel -y
sudo yum --disablerepo=* --enablerepo=wyc  install openssl openssl-devel -y
sudo yum --disablerepo=* --enablerepo=wyc  install mesa-libGL-devel

sudo yum --disablerepo=* --enablerepo=wyc --installroot=/aenv/iso_root  install autoconf automake libtool
sudo yum --disablerepo=* --enablerepo=wyc --installroot=/aenv/iso_root  install elfutils

sudo yum --disablerepo=* --enablerepo=wyc --installroot=/aenv/iso_root install elfutils





# 挂载
lsblk
df -h

sudo umount /dev/sr0
sudo lsof /run/media/wyc/CentOS\ 7\ x86_64


sudo umount -l /dev/sr0
sudo mount /dev/sr0 /aenv/iso_repo


# 其他操作
# 列出仓库所有可安装的包
sudo yum --disablerepo=* --enablerepo=wyc list available
# 列出仓库
sudo yum --disablerepo=* --enablerepo=wyc repolist




// 修改为阿里镜像源
https://edu.51cto.com/article/note/2932.html
cat /etc/apt/sources.list