Yum installs the software and retains the downloaded software

Source: Internet
Author: User
Use the Yum plugin downloadonly to download the dependent packages required to install the software and keep the Yum-downloadonly or Yum-plugin-downloadonly package installed to the specified file. Yum Install yum-plugin-downloadonlyyum-y install--downloadonly--downloaddir=/var/ftp/yum cmake gcc gcc-c++ libgcrypt* crypt* Libaio libaio-devel automake autoconf BZR bison libtool ncurses5-devel libaio perl-time-hires perl-dbd-mysql Perl-I O-SOCKET-SSLRSYNC-AVRT rsync://mirrors.ustc.edu.cn/centos/6.6/updates/x86_64/packages/  /var/ftp/ Yum1. Save the Yum installed RPM package Edit file/etc/yum.confkeepcache=0       Modify the default 0 for the 1,rpm package after download does not clear the downloaded directory after the download is as follows: [[email protected] ~]# ls/var/ cache/yum/x86_64/6/base/packages/lrzsz-0.12.20-27.1.el6.x86_64.rpm  screen-4.0.3-18.el6.x86_64.rpm

Yum installs the software and retains the downloaded software

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.