Last active
September 3, 2015 12:02
-
-
Save sushantmane/4faad88a4ee573aeb90c to your computer and use it in GitHub Desktop.
Shell script to update e2fsprogs on CentOS 6
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 | |
script_file="$PWD/$0" | |
dir=`mktemp -d` && cd $dir | |
echo "Downloading and updating e2fsprogs..." | |
wget -i https://gist.githubusercontent.com/sushantmane/3800870712be136aa866/raw/fd20e6f53abc523c4180e68d773b15728202a661/e2fsprogs.url && rpm -Uvh *.rpm | |
echo "Removing rpms..." | |
rm -rf *.rpm | |
cd | |
rm -rf $dir | |
rm -f $script_file | |
echo "***Enjoy!***" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update e2fsprogs with following command
curl -kL https://gist.githubusercontent.com/sushantmane/4faad88a4ee573aeb90c/raw/ec0b3e7280bf98e95d64ba4220e4dc5c47f2288d/e2fsprogs_update.sh | bash