All pastes #37092 Raw Edit

Untitled

public text v1 · immutable
#37092 ·published 2006-01-17 16:21 UTC
rendered paste body
install_fresh ()
 {
  for i in ${install_array[@]}
   do
    echo -e "\nRPMs in package group $i are now being installed\n"|
    tee -a /home/netop/rpm_upd;
    for g in `eval echo \$\{$i\[\@\]\}`
    do
     echo "Preparing to install package $g";
     rpm -Uvh --nodeps $g &>/dev/null
     if [ $? = "0" ]
     then
      echo "Package $g successfully updated" |tee -a /home/netop/rpm_upd;
     else
      echo -e "Package $g was not successfully installed!\007" |
      tee -a /home/netop/rpm_upd;
     fi
    done
   sleep 1;
   done
 }
  install_array=( gcc_rpms glibc_rpms user_rpms fkern_rpms devl_rpms
   memm_rpms inet_rpms misc_rpms )
### memm_rpms=( )