The storage location of the yum download software/var/cache/yum/*/packages is usually deleted after installation, but it can be retained through configuration. Configure the yum. confkeepcache option keepcache = 1. use yum to download only the rpm Package. first, install yum-utils: yum-yinstallyum-utils yum to store the software.
/Var/cache/yum/*/packages are usually deleted after installation, but can be retained through configuration.
Configure yum. conf
Keepcache option keepcache = 1.
Use yum to download only the rpm Package
First, install yum-utils: yum-y install yum-utils
Then, you can directly use yumdownloader to download the rpm package in the yum source.
Example: yumdownloader libyaml
After the download is complete, there will be two files in the current directory: libyaml-0.1.3-4.el6_6.i686.rpm and libyaml-0.1.3-4.el6_6.x86_64.rpm
Force install rpm file
[Plain]View plaincopy
- Rpm-ivh libyaml-0.1.3-4.el6_6.x86_64.rpm -- force -- nodeps