Skip to content

Instantly share code, notes, and snippets.

@orimanabu
Created December 1, 2010 16:14
Show Gist options
  • Save orimanabu/723715 to your computer and use it in GitHub Desktop.
Save orimanabu/723715 to your computer and use it in GitHub Desktop.
add rpms necessary for a minimum installed RHEL6 system to use ssh and mount.nfs
#!/bin/sh
# this is a script to add some rpms necessary for a minimum installed RHEL6 system to use ssh, mount.nfs and lftp.
# supported distro: RHEL6.0
baseurl=ftp://FTPSERVER/PATH_TO_MOUNTED_ISOIMAGE
arch=x86_64
rpmopts=-ivh
echo "===> installing openssh-clients"
rpm ${rpmopts} \
${baseurl}/Packages/libedit-2.11-4.20080712cvs.1.el6.${arch}.rpm \
${baseurl}/Packages/openssh-clients-5.3p1-20.el6.${arch}.rpm
echo "===> installing nfs-utils"
rpm ${rpmopts} \
${baseurl}/Packages/nfs-utils-lib-1.1.5-1.el6.${arch}.rpm \
${baseurl}/Packages/nfs-utils-1.2.2-7.el6.${arch}.rpm \
${baseurl}/Packages/libevent-1.4.13-1.el6.${arch}.rpm \
${baseurl}/Packages/libgssglue-0.1-8.1.el6.${arch}.rpm \
${baseurl}/Packages/libtirpc-0.2.1-1.el6.${arch}.rpm \
${baseurl}/Packages/rpcbind-0.2.0-8.el6.${arch}.rpm
echo "===> installing lftp"
rpm ${rpmopts} \
${baseurl}/Packages/lftp-4.0.9-1.el6.${arch}.rpm \
${baseurl}/Packages/gnutls-2.8.5-4.el6.${arch}.rpm \
${baseurl}/Packages/libtasn1-2.3-3.el6.${arch}.rpm
# echo "===> starting rpcbind"
# chkconfig rpcbind on
# /etc/init.d/rpcbind start
echo "===> creating yum repo files"
cat > /etc/yum.repos.d/rhel60.repo <<END
[rhel60ftp]
name=RHEL6.0
baseurl=${baseurl}
enabled=0
gpgcheck=1
gpgkey=${baseurl}/RPM-GPG-KEY-redhat-release
END
echo "===> verifying... "
yum --enablerepo=rhel60ftp grouplist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment