1.全局的代理设置:
vi /etc/profile
http_proxy = http://Kming:1qaz2ws@192.168.8.5:8080/
ftp_proxy = http://Kming:1qaz2ws@192.168.8.5:8080/
export http_proxy
export ftp_proxy
2.yum的代理设置:
vi /etc/yum.conf
添加下面内容
proxy = http://Kming:1qaz2ws@192.168.8.5y:8080/
3.wget的代理设置:
vi /etc/wgetrc
# Proxy
http_proxy = http://Kming:1qaz2ws@192.168.8.5:8080/
ftp_proxy = http://Kming:1qaz2ws@192.168.8.5:8080/
4.Yum源设置:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
$releasever ===8
$basearch === aarch64
5、下载安装包
yum install -y device-mapper-persistent-data lvm2 --downloadonly --downloaddir=/home/repo