RHEL6 to obtain the installation package (RPM) without Installation

Source: Internet
Author: User

RHEL6 to obtain the installation package (RPM) without Installation
RHEL6 to obtain the installation package (RPM) without Installation

Sometimes we can only get the RPM installation package online on a machine. to install the RPM package on an intranet machine that cannot access the Internet, we need to download the installation package to the local machine without installation, then copy the packages to the Intranet machine for installation. Another method is to create an image server without testing! The following example illustrates how to install saltstack (salt-master and salt-minion.

 

1) First, set the yum source on the machine that can connect to the Internet. I have set several yum sources for RHEL6.4, as shown below:

 

[rhel6_4-default]name     = "Red Hat Enterprise Linux Server release 6.4 (Santiago)"baseurl  = ftp://192.168.122.100/pub/rhel64enabled  = 1gpgcheck = 1gpgkey   = ftp://192.168.122.100/pub/rhel64/RPM-GPG-KEY-redhat-release[cloudera-cdh5]# Packages for Cloudera's Distribution for Hadoop, Version 5, on RedHat or CentOS 6 x86_64name     = Cloudera's Distribution for Hadoop, Version 5enabled  = 1gpgcheck = 1baseurl  = ftp://192.168.122.100/pub/cloudera/cdh/5/gpgkey   = ftp://192.168.122.100/pub/cloudera/cdh/RPM-GPG-KEY-cloudera[cloudera-gplextras5]# Packages for Cloudera's GPLExtras, Version 5, on RedHat or CentOS 6 x86_64name     = Cloudera's GPLExtras, Version 5enabled  = 1gpgcheck = 1baseurl  = ftp://192.168.122.100/pub/cloudera/gplextras/5/gpgkey   = ftp://192.168.122.100/pub/cloudera/gplextras/RPM-GPG-KEY-cloudera[epel-6]name=Extra Packages for Enterprise Linux 6# http://ftp.linux.ncsu.edu/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm#baseurl=http://ftp.linux.ncsu.edu/pub/epel/6/x86_64failovermethod=priorityenabled=1gpgcheck=1gpgkey=http://ftp.linux.ncsu.edu/pub/epel/RPM-GPG-KEY-EPEL-6

 

 

* Installing rpmforge *** this step is important, with no python-jinja2 on the epel source of redhat 6 and centos 6. # wget -- no-check-certificate http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm # rpm-Uvh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

 

All right, the source is ready. Start installing plug-in yum-plugin-downloadonly.noarch. 1.30-14. el6:

 

# yum install yum-downloadonly

 

 

# mkdir /root/Downloads/salt-minion# mkdir /root/Downloads/salt-master# mkdir /root/Downloads/salt-api# yum install -y --downloadonly --downloaddir=/root/Downloads/salt-minion salt-minion# yum install -y --downloadonly --downloaddir=/root/Downloads/salt-master salt-master# yum install -y --downloadonly --downloaddir=/root/Downloads/salt-api salt-api        #### rest api of salt

 

2) copy the rpm under/root/Downloads/salt-minion to another machine, and then install:

 

# scp -r /root/Downloads/salt-minion root@anotherIP:~/# ssh root@anotherIP# cd ~/salt-minion# rpm -ivh *.rpm############################################### service salt-minion start#### service salt-master start #### service salt-api start

 

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.