Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.| #!/bin/sh | |
| # Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh | |
| # and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
| if [ "`/usr/bin/whoami`" != "root" ]; then | |
| echo "You need to execute this script as root." | |
| exit 1 | |
| fi | |
| cat > /etc/yum.repos.d/centos.repo<<EOF |