Var/cache/yum/*/packages
It is usually removed after installation, but can also be reserved by configuration.
Configure yum.conf
Keepcache option keepcache=1
Use Yum to download only RPM packages without installing
It is very convenient for CentOS to install software in Yum, and sometimes we just need to download the RPM package, and not install it directly. In general, Yum does not provide download-only functionality.
Where is the download file after Yum install?
In general, Yum installs the software after the RPM package is stored under/var/cache/yum/. Such as
/var/cache/yum/i386/6/updates/packages/openssl-1.0.0-4.el6_0.2.i686.rpm/var/cache/yum/i386/6/updates/packages/ openssl-devel-1.0.0-4.el6_0.2.i686.rpm
Download the RPM package with Yum only
The way to download the RPM package from the Yum source is to install the yum-utils and directly download the RPM package from the Yum source using Yumdownloader.
Yum-y Install Yum-utils
Then you can download the RPM package with Yumdownloader. Simple and quick.
Yumdownloader ncftp
The current directory will have a ncftp rpm package.
RPM Force Installation
Sometimes when automatic installation with Yum is unsuccessful, you can download the RPM package and then force the installation. Such as
RPM-IVH openssl-1.0.0-4.el6_0.2.i686.rpm--force--nodeps
This article is from the "Dream to Reality" blog, please be sure to keep this source http://lookingdream.blog.51cto.com/5177800/1765337
Where to store the Yum download software