Created
February 12, 2015 09:26
-
-
Save kkosuge/92e4c1faf210a433c1cf to your computer and use it in GitHub Desktop.
This file contains 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
echo "This script requires superuser access to install rpm packages." | |
echo "You will be prompted for your password by sudo." | |
# clear any previous sudo permission | |
sudo -k | |
# run inside sudo | |
sudo sh <<SCRIPT | |
# add GPG key | |
rpm --import http://packages.treasuredata.com/GPG-KEY-td-agent | |
# add treasure data repository to yum | |
cat >/etc/yum.repos.d/td.repo <<'EOF'; | |
[treasuredata] | |
name=TreasureData | |
baseurl=http://packages.treasuredata.com/2/redhat/7/\$basearch | |
gpgcheck=1 | |
gpgkey=http://packages.treasuredata.com/GPG-KEY-td-agent | |
EOF | |
# update your sources | |
yum check-update | |
# install the toolbelt | |
yes | yum install -y td-agent | |
SCRIPT |
Author
kkosuge
commented
Feb 12, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment