Advertisement
chusiang

clone-pkg-with-yum.sh

May 10th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # run it at source server.
  4. #   $ yum list installed | awk '{print $1}' > list.txt
  5.  
  6. for X in $(cat list.txt); do
  7.     yum install -y $X
  8. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement