Centos yum安装保存rpm到本地

1、修改yum配置文件

sed -i "s/keepcache=0/keepcache=1/g" /etc/yum.conf

2、清理yum缓存

yum clean all

3、yum安装

yum -y install gcc gcc-c++ make pcre-devel zlib-devel

4、查看rpm包

var/cache/yum/x86_64/6/base/packages/(Ccentos6版本)

 

你可能感兴趣的:(Centos yum安装保存rpm到本地)