「MySQLのRPMをダウンロードするシェルスクリプト」の版間の差分
提供: Wikiducca
細 (1版) |
|||
行1: | 行1: | ||
− | <source lang="bash" | + | == 5.5 == |
+ | <source lang="bash"> | ||
+ | #!/bin/sh | ||
+ | |||
+ | FTPSV="ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.5/" | ||
+ | VERSION="5.5.27-1" | ||
+ | |||
+ | #ARCH="rhel4.i386" | ||
+ | ARCH="rhel5.x86_64" | ||
+ | |||
+ | mkdir -p ${VERSION}/${ARCH} | ||
+ | cd ${VERSION}/${ARCH} | ||
+ | |||
+ | wget ${FTPSV}MySQL-client-${VERSION}.${ARCH}.rpm | ||
+ | wget ${FTPSV}MySQL-devel-${VERSION}.${ARCH}.rpm | ||
+ | wget ${FTPSV}MySQL-server-${VERSION}.${ARCH}.rpm | ||
+ | wget ${FTPSV}MySQL-shared-${VERSION}.${ARCH}.rpm | ||
+ | |||
+ | exit 0 | ||
+ | # EOF | ||
+ | </source> | ||
+ | |||
+ | |||
+ | == 5.1 == | ||
+ | <source lang="bash"> | ||
#!/bin/sh | #!/bin/sh | ||
2012年8月16日 (木) 00:03時点における版
5.5
#!/bin/sh FTPSV="ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.5/" VERSION="5.5.27-1" #ARCH="rhel4.i386" ARCH="rhel5.x86_64" mkdir -p ${VERSION}/${ARCH} cd ${VERSION}/${ARCH} wget ${FTPSV}MySQL-client-${VERSION}.${ARCH}.rpm wget ${FTPSV}MySQL-devel-${VERSION}.${ARCH}.rpm wget ${FTPSV}MySQL-server-${VERSION}.${ARCH}.rpm wget ${FTPSV}MySQL-shared-${VERSION}.${ARCH}.rpm exit 0 # EOF
5.1
#!/bin/sh FTPSV="ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.1/" VERSION="5.1.50-1" #ARCH="rhel4.i386" ARCH="rhel5.x86_64" mkdir -p ${VERSION}/${ARCH} cd ${VERSION}/${ARCH} wget ${FTPSV}MySQL-client-community-${VERSION}.${ARCH}.rpm wget ${FTPSV}MySQL-devel-community-${VERSION}.${ARCH}.rpm wget ${FTPSV}MySQL-server-community-${VERSION}.${ARCH}.rpm wget ${FTPSV}MySQL-shared-community-${VERSION}.${ARCH}.rpm exit 0 # EOF
なぜこの4種類なのかは、こちら を参照。