BigData

[ShellScripts ] Mysql RPM 다운로드

IT오이시이 2013. 9. 23. 13:49
728x90

[ShellScripts ] Mysql RPM 다운로드


 - 오라클 mysql  패키지를  다운 받는 스크립트 이다.



my_download.sh

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

VER="5.5.34-1"     # 주의 : 버전 명 뒤에 -1 이 항상 있음 mysql.com 참고

PlatForm=`uname -i`

OS="rhel5"

OS="linux2.6"



FNAMES="MySQL-devel MySQL-client MySQL-shared-compat MySQL-server MySQL-shared"


for fname in $FNAMES

do


   RPM_NM="${fname}-${VER}.${OS}.${PlatForm}.rpm"


   wget http://www.mysql.com/get/Downloads/MySQL-5.5/${RPM_NM}/from/http://cdn.mysql.com/ -O $RPM_NM


   echo "\n  >>>>>>   download stat [$?] !!";

   ls -al $RPM_NM

done


#MySQL-devel-5.5.24-1.linux2.6.i386.rpm

#MySQL-server-5.5.24-1.linux2.6.i386.rpm

#MySQL-shared-compat-5.5.24-1.linux2.6.i386.rpm

#MySQL-client-5.5.24-1.linux2.6.i386.rpm


 # http://www.mysql.com/get/Downloads/MySQL-5.5/MySQL-shared-compat-5.5.28-1.rhel5.x86_64.rpm/from/http://cdn.mysql.com/

 # http://www.mysql.com/get/Downloads/MySQL-5.5/MySQL-shared-5.5.28-1.linux2.6.x86_64.rpm/from/http://cdn.mysql.com/"

 # http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-shared-5.5.34-1.linux2.6.x86_64.rpm/from/http://cdn.mysql.com/

728x90
반응형