Fork me on GitHub

Sonar native packages

Those packages install standalone version of Sonar into "/opt/sonar" and provide init script, so it can be launched as:
/etc/init.d/sonar start

Looking for Docker image instead?

There is official image in Docker Hub.

Debian-based Linux distributions such as Ubuntu


Add the following entry in your /etc/apt/sources.list :
deb binary/
Update your local package index and install Sonar:
sudo apt-get update
sudo apt-get install sonar

RPM-based Linux distributions such as RedHat, Fedora, CentOS, openSUSE


Add repository:
sudo wget -O /etc/yum.repos.d/sonar.repo
Install Sonar:
yum install sonar


Add repository:
zypper addrepo sonar
Install Sonar:
zypper install sonar



Add overlay:
layman -L
layman -a godin
Install Sonar:
emerge -av dev-util/sonar-bin


Configure repository, then install Sonar:
cave resolve -x dev-util/sonar-bin

Homebrew for MacOS X

Install Homebrew, then install Sonar:
brew install sonar