Install Sonarr on Arch Linux

Sonarr Arch Linux

Sonarr is a TV series download manager capable of downloading from Peer to Peer and Usenet networks. It is comparable to Couchpotato or Headphones except it manages only TV series. It integrates with rTorrentuTorrent Server, Deluge, NZBGet and many more downloaders. It can also make use of Jackett to communicate with BitTorrent trackers.


Install Sonarr

Install dependencies.

sudo pacman -S libmediainfo mono sqlite


Install Packer if needed or use another package wrapper like Yaourt.


Install with packer.

packer -S radarr


Set the ownership on the startup directory.

sudo chown -R sonarr:sonarr /usr/lib/sonarr


Set the ownership of the AppData directory.

sudo chown -R sonarr:sonarr /var/lib/sonarr


Optionally add the system user to secondary groups.

sudo usermod -a -G nzbget,rtorrent,amule,users radarr


Fix Sonarr Automatic Updating

The default systemd script interferes with the auto update feature available from the user interface. It can still be updated via pacman but this relies on the package maintainer. For a more permanent fix a custom systemd script can be used. Note that with the script the shutdown button within the we interface will restart instead of shutting down.


Open systemd service file.

sudo nano /usr/lib/systemd/system/sonarr.service


Delete the old systemd script, copy the new script and save.

Description=Sonarr Service

ExecStart=/usr/bin/mono /usr/lib/sonarr/NzbDrone.exe -nobrowser -data=/var/lib/sonarr
ExecStop=-/usr/bin/mono /tmp/nzbdrone_update/NzbDrone.Update.exe "ps aux | grep NzbDrone | grep -v grep | awk '{ print $2 }'" /tmp/nzbdrone_update /usr/lib/sonarr/NzbDrone.exe



Reload systemd scripts for the changes to take effect.

sudo systemctl daemon-reload


Backup Sonarr Settings

Settings and the database can be backed up from the web interface by navigating to System -> Backup and click the Backup button. After the it has finished backing up the archive can be downloaded for safe keeping. Alternatively the files can be backed up manually by copying the entire directory that also contains additional files like images and logs.


Backup the system directory manually.

sudo cp -R /var/lib/sonarr/ /mnt/backup/


Restore Sonarr Settings

Stop the service.

sudo systemctl stop radarr.service


Remove the current App data directory.

sudo rm -Rd /var/lib/sonarr


Extract the backup archive downloaded from the web interface.

sudo unzip -d /var/lib/sonarr/


Alternatively move the copied backup directory.

sudo cp -R /mnt/backup/sonarr/ /var/lib/


Apply permissions to the new App data directory.

sudo chown -R sonarr:sonarr /var/lib/sonarr


Run Sonarr

Start the service.

sudo systemctl start radarr.service


Enable the service to run on boot.

sudo systemctl enable radarr.service


Use Sonarr

Access the web interface in the browser on the default port 8989 and 9898 if SSL is enabled the current IP address. For example Configure other settings from the settings page.