Last active
December 5, 2017 17:45
-
-
Save pamtrak06/9d8f4dd54b6826285749605b231ae6ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum update -y && yum -y install yum-utils | |
# Example for downloading rpm | |
declare -a arr=("nc.x86_64" "curl" "wget" "mlocate" "sudo" "dos2unix" "tar" "unzip" "passwd") | |
for p in "${arr[@]}"; do { yumdownloader $p; } done; | |
declare -a arr=(curl-7.19.7-53.el6_9.x86_64.rpm nc-1.84-24.el6.x86_64.rpm tar-1.23-15.el6_8.x86_64.rpm | |
dos2unix-3.1-37.el6.x86_64.rpm passwd-0.77-7.el6.x86_64.rpm unzip-6.0-5.el6.x86_64.rpm | |
mlocate-0.22.2-6.el6.x86_64.rpm sudo-1.8.6p3-29.el6_9.x86_64.rpm wget-1.12-10.el6.x86_64.rpm) | |
for p in "${arr[@]}"; do { docker cp $container_id:~/rpm/$p base/build/centos6.7/; } done; | |
declare -a arr=("postgis2_92" "postgresql92-contrib" "postgresql92" "postgresql92-server") | |
for p in "${arr[@]}"; do { yumdownloader $p; } done; | |
declare -a arr=("postgis2_92-2.1.8-1.rhel6.x86_64.rpm" "postgresql92-contrib-9.2.24-2PGDG.rhel6.x86_64.rpm" "postgresql92-9.2.24-2PGDG.rhel6.x86_64.rpm" "postgresql92-server-9.2.24-2PGDG.rhel6.x86_64.rpm") | |
for p in "${arr[@]}"; do { docker cp $container_id:~/rpm/$p ow_database/build/centos6.7/postgres9.2; } done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment