2.6 Yum How to download RPM packages to local

Source: Internet
Author: User

#用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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.