It is assumed you have a basic knowledge of linux or the ability to google / learn as necessary. Otherwise it is suggested to use an OS you know and understand
Note: Raspberry Pi OS and Raspbian are both flavors of Debian
For the Debian / Ubuntu / Raspbian beginners there isn't an Apt Repository or Deb package.
If you want an easy life, follow this community provided and maintained Easy Install script for a base Debian (Raspbian / Raspberry Pi OS) / Ubuntu install.
For the official installation instructions that are 'Hands on' follow the Debian / Ubuntu Hands on Install steps further below.
Please see the *Arr Community Installation Script
Sonarr uses a bundled version of ffprobe for media file analysis and does not require ffprobe or ffmpeg to be installed on the system. If Sonarr says ffprobe is not found this can typically be fixed with a reinstall.
You'll need to install the binaries using the below commands.
The steps below will download the stable version (
mainrelease branch) of Sonarr and install it into/opt
Sonarr will run under the usersonarrand groupmedia;mediais the commonly suggested group to run the *Arrs, download clients, and media server under.
Sonarr's configuration files will be stored in/var/lib/sonarr
sudo apt install curl sqlite3 wget
Installation Prerequisites
The below instructions are based on the following prerequisites. Change the instructions as needed to suit your specific needs if necessary.
* The usersonarris created
* The usersonarris part of the groupmedia
* Your download clients and media server run as and are a part of the groupmedia
* Your paths used by your download clients and media server are accessible (read/write) to the groupmedia
* You created the directory/var/lib/sonarrand ensured the usersonarrhas read/write permissions for it
By continuing below, you acknowledge that you have read and met the above requirements.
dpkg --print-architecture
amd64) use arch=x64armhf) use arch=armarm64) use arch=arm64wget --content-disposition 'https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64'
tar -xvzf Sonarr*.linux*.tar.gz
/opt/sudo mv Sonarr /opt/
Note: This assumes you will run as the user
sonarrand groupmedia. You may change this to fit your usecase. It's important to choose these correctly to avoid permission issues with your media files. We suggest you keep at least the group name identical between your download client(s) and Sonarr.
sudo chown sonarr:media -R /opt/Sonarr
The below systemd creation script will use a data directory of
/var/lib/sonarr. Ensure it exists or modify it as needed. For the default data directory of/home/$USER/.config/Sonarrsimply remove the-dataargument. Note: that$USERis the User Sonarr runs as and is defined below.
cat << EOF | sudo tee /etc/systemd/system/sonarr.service > /dev/null
[Unit]
Description=Sonarr Daemon
After=syslog.target network.target
[Service]
User=sonarr
Group=media
UMask=0002
Type=simple
ExecStart=/opt/Sonarr/Sonarr -nobrowser -data=/var/lib/sonarr
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl -q daemon-reload
sudo systemctl enable --now -q sonarr
rm Sonarr*.linux*.tar.gz
Typically to access the Sonarr web GUI browse to http://{Your server IP Address}:8989
If Sonarr did not appear to start, then check the status of the service:
sudo journalctl --since today -u sonarr
To uninstall and purge:
Warning: This will destroy your application data.
sudo systemctl stop sonarr
sudo rm -rf /opt/Sonarr
sudo rm -rf /var/lib/sonarr
sudo rm -rf /etc/systemd/system/sonarr.service
sudo systemctl -q daemon-reload
To uninstall and keep your application data:
sudo systemctl stop sonarr
sudo rm -rf /opt/Sonarr
sudo rm -rf /etc/systemd/system/sonarr.service
sudo systemctl -q daemon-reload
Official builds and packages for other platforms are linked from the Sonarr download page.