Skip to content

Instantly share code, notes, and snippets.

@tlhakhan
Last active April 1, 2017 20:47
Show Gist options
  • Save tlhakhan/cd3cd30db13522de023a3aa47b96b2e4 to your computer and use it in GitHub Desktop.
Save tlhakhan/cd3cd30db13522de023a3aa47b96b2e4 to your computer and use it in GitHub Desktop.
Offline software repo
#!/bin/bash
#
# let's make an offline repo of mfu software
#
# deps
yum install -y yum-utils-1.1.31-40.el7.noarch
#
# let's get the open-jdk rpms
#
# get jdk8
mkdir -p /opt/software/java/jdk8 && cd /opt/software/java/jdk8
yumdownloader java-1.8.0-openjdk
# get jdk7
mkdir -p /opt/software/java/jdk7 && cd /opt/software/java/jdk7
yumdownloader java-1.7.0-openjdk
#
# let's get the MySQL rpms for offline deployment
#
# get 5.6
mkdir -p /opt/software/mysql/5.6 && cd /opt/software/mysql/5.6
curl -LO https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.35-1.el7.x86_64.rpm-bundle.tar
tar -xvf MySQL-5.6.35-1.el7.x86_64.rpm-bundle.tar
# get 5.7
mkdir -p /opt/software/mysql/5.7 && cd /opt/software/mysql/5.7
curl -LO https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.17-1.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-5.7.17-1.el7.x86_64.rpm-bundle.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment