Intranet-only server with Yum installation software

Source: Internet
Author: User

1, in the maintenance process, the need for a unified installation of some software, there may be some machines only have an intranet, some machines with external network, can be installed directly from Yum, how to do?
A: The Yum cache is enabled on a machine with an external network, so the software installation package is also cached locally when installing the software, and how to modify the Yum configuration:
#vim/etc/yum.conf
Keepcache=1//1 means cache is enabled and defaults to 0, which means not enabling
#yum install software name//installed package will be cached under/var/cache/yum/base/packages, updated package will be cached to/var/cache/yum/updates/packages
#yum Install Yum-downloadonly
#yum-y install--downloadonly software name//download package only, do not install
2, other intranet machine how to install software?
A very simple way to copy all the files in the/var/cache/yum/directory of this machine to the same directory under another machine
Such as:
Rsync-ave ' Ssh-p '/var/cache/yum/192.168.84.156:/var/cache/yum/
If the destination server changes the port number of SSH for security reasons, change the above 22 to the appropriate port number
3. Implementation

# YUM-C Update//updates only from cache
# Yum-c Install < package name >//Installation from cache only

Note:
Emptying the Yum cache
# Yum Clean headers
To delete all packages in the cache, use the command:
# Yum Clean Package

Intranet-only server with Yum installation 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.