Ubuntu and Debian
# Setup
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')CODENAME=$(lsb_release -cs)
# Add the repository
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" |
sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo apt-get -y update
# Install packages
sudo apt-get -y install mesos marathon chronos
RedHat and CentOS
# Add the repository
sudo rpm -Uvh
# Install packages
sudo yum -y install mesos marathon chronos