Read here to ensure system packages are installed
Download the agent from github releases
~/$ mkdir myagent && cd myagent
~/myagent$ tar xzf ~/Downloads/vsts-agent-rhel.7.2-x64-2.103.0.tar.gz
~/myagent$ ./config.sh
You can run the agent interactively or as a SystemD service.
~/myagent$ ./run.sh