Skip to content

Instantly share code, notes, and snippets.

@jordanwesthoff
Created June 4, 2015 00:33
Show Gist options
  • Save jordanwesthoff/1df657ecc4851a60cf6c to your computer and use it in GitHub Desktop.
Save jordanwesthoff/1df657ecc4851a60cf6c to your computer and use it in GitHub Desktop.
Yum installation test
pkg="wget"
if yum -qq install $pkg; then
echo "Successfully installed $pkg"
else
echo "Error installing $pkg"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment