Skip to content

Instantly share code, notes, and snippets.

@sushantmane
Last active September 3, 2015 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sushantmane/4faad88a4ee573aeb90c to your computer and use it in GitHub Desktop.
Save sushantmane/4faad88a4ee573aeb90c to your computer and use it in GitHub Desktop.
Shell script to update e2fsprogs on CentOS 6
#!/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!***"
@sushantmane
Copy link
Author

Update e2fsprogs with following command

curl -kL https://gist.githubusercontent.com/sushantmane/4faad88a4ee573aeb90c/raw/ec0b3e7280bf98e95d64ba4220e4dc5c47f2288d/e2fsprogs_update.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment