#用yum下载rpm包, to install a plug-in, take precedence over the network source, and then use the local source
Yum Install-y yum--downloadonly
#再用yum下载rpm包, specify the download path
Yum Install-vte--downloadonly--downloaddir=/tmp/
LS/TMP/VTE See if you have this package.
#如果已经安装过的, there reinstall reinstall
Yum Reinstall-vte--downloadonly--downloaddir=/tmp/
Exercises:
1. Relationship Yum Download rpm package is the right thing to say?
You need to install the Yum-plugin-downloadonly package before you can download the RPM package properly.
The download process, in fact, is yum to download the RPM is not installed, the command is also using Yum install
If you have a dependent package for the RPM package that you want to download, yum will download all the dependent packages as well.
Summarize:
Main: Yum Download rpm pack--downloadonly Specify the download path--downloaddir=/tmp/
Secondary: Yum Reinstall RPM Packets Reinstall
2.6 Yum How to download RPM packages to local