Created
November 15, 2017 20:40
-
-
Save meoso/64919f63dfde9ac041c38349d425d9a5 to your computer and use it in GitHub Desktop.
eachandevery.sh - RHEL/CentOS - try to update each and every package individually
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#eachandevery.sh - RHEL/CentOS - try to update each and every package individually due to broken behavior | |
yum check-update | awk '{print $1}' | tee ~/updateable.txt | |
while read -r packagename ; do | |
echo "INSTALLING ${packagename}" | |
yum -y --skip-broken update "${packagename}" | |
done < ~/updateable.txt | |
rm ~/updateable.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment