[root@wwww yum.repos.d]# sed -i 's#keepcache=0#keepcache=1#g' /etc/yum.conf
[root@wwww yum.repos.d]# grep keepcache /etc/yum.conf
keepcache=1
[root@wwww yum.repos.d]# tree /var/cache/yum///rpm包默认存放路径
/var/cache/yum/
|-- addons
| |-- cachecookie
| |-- filelists.sqlite
| |-- other.sqlite
| |-- packages
| |-- primary.sqlite
| `-- repomd.xml
|-- base
| |-- cachecookie
| |-- comps.xml
| |-- filelists.xml.gz
| |-- filelists.xml.gz.sqlite
| |-- other.xml.gz
| |-- packages
| | |-- e2fsprogs-1.39-37.el5.x86_64.rpm
| | |-- e2fsprogs-devel-1.39-37.el5.x86_64.rpm
| | |-- e2fsprogs-libs-1.39-37.el5.i386.rpm
| | |-- e2fsprogs-libs-1.39-37.el5.x86_64.rpm
| | |-- keyutils-libs-devel-1.2-1.el5.x86_64.rpm
| | |-- libselinux-devel-1.33.4-5.7.el5.x86_64.rpm
| | `-- libsepol-devel-1.15.2-3.el5.x86_64.rpm
| |-- primary.xml.gz
| |-- primary.xml.gz.sqlite
| `-- repomd.xml
|-- c5-media
| |-- cachecookie
| |-- comps.xml
| |-- filelists.xml.gz
| |-- filelists.xml.gz.sqlite
| |-- packages
| |-- primary.xml.gz
| |-- primary.xml.gz.sqlite
| `-- repomd.xml
|-- extras
| |-- cachecookie
| |-- filelists.sqlite
| |-- other.sqlite
| |-- packages
| |-- primary.sqlite
| |-- repomd.xml
| `-- yumgroups.xml
|-- timedhosts.txt
`-- updates
|-- cachecookie
|-- packages
| |-- krb5-devel-1.6.1-80.el5_11.x86_64.rpm
| |-- krb5-libs-1.6.1-80.el5_11.i386.rpm
| |-- krb5-libs-1.6.1-80.el5_11.x86_64.rpm
| |-- krb5-workstation-1.6.1-80.el5_11.x86_64.rpm
| |-- openssl-0.9.8e-32.el5_11.i686.rpm
| |-- openssl-0.9.8e-32.el5_11.x86_64.rpm
| |-- openssl-devel-0.9.8e-32.el5_11.i386.rpm
| `-- openssl-devel-0.9.8e-32.el5_11.x86_64.rpm
|-- primary.sqlite
`-- repomd.xml
10 directories, 45 files
YUM安装rpm包安装后本地不清楚的方法(即如何让安装包在本地保留下来)
最新推荐文章于 2023-08-11 15:58:28 发布