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

APT

Add the following entry in your /etc/apt/sources.list :
deb http://downloads.sourceforge.net/project/sonar-pkg/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

YUM

Add repository:
sudo wget -O /etc/yum.repos.d/sonar.repo http://downloads.sourceforge.net/project/sonar-pkg/rpm/sonar.repo
Install Sonar:
yum install sonar

Zypper

Add repository:
zypper addrepo http://downloads.sourceforge.net/project/sonar-pkg/rpm sonar
Install Sonar:
zypper install sonar

Gentoo

Portage

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

Paludis

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

Homebrew for MacOS X

Install Homebrew, then install Sonar:
brew install sonar