Where to store the Yum download software

Source: Internet
Author: User

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

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.