Installation CentOS 7

Jason Pack edited this page Oct 4, 2016 · 8 revisions

The following instructions are for installing Sonarr on CentOS 7.

Please note these were the steps taken by an experienced user.

*If you don't feel like fighting SELinux

setenforce 0

*And to ensure it stays that way

vi /etc/selinux/config
Find the value enforcing, and change to disabled

*Install some repos and packages

yum install epel-release yum-utils -y
rpm --import ""
yum-config-manager --add-repo
yum install wget mediainfo libzen libmediainfo curl gettext mono-core mono-devel sqlite.x86_64 -y
  • If you have issues or you started from a very base (minimal) install, you may also need

yum -y install wget git par2cmdline p7zip unrar unzip tar gcc python-yenc python-feedparser python-configobj python-cheetah python-dbus python-support python-devel libxslt-devel

*Add a user for sonarr to use

useradd sonarr -s /sbin/nologin

*Download, extract and move sonarr

tar -xvf ~/NzbDrone.master.tar.gz -C /opt/
rm -f NzbDrone.master.tar.gz
mv /opt/NzbDrone /opt/sonarr

*Change ownership of the install directory

chown -R sonarr:sonarr /opt/sonarr

*Create your systemd unit file

cat > sonarr.service << EOF

Description=Sonarr Daemon


ExecStart=/usr/bin/mono /opt/sonarr/NzbDrone.exe -nobrowser -data /opt/sonarr


*Now move the unit file to the proper location

mv sonarr.service /usr/lib/systemd/system/

*Add firewall exceptions if the firewall is enabled

cat > sonarr.xml << EOF

  <description>Sonarr Download Service</description>
  <port protocol="tcp" port="8989"/>

mv sonarr.xml /etc/firewalld/services/
firewall-cmd --permanent --add-service sonarr
firewall-cmd --reload

*Enable sonarr to run on startup, and start!

systemctl enable sonarr.service
systemctl start sonarr.service



The service has loaded and when browsing to the site it is blank.

Run the following to test for missing mono links.

systemctl stop sonarr
systemctl start sonarr
journalctl -xe | grep

If you see a line similar to

System.Net.WebException: /usr/lib/ ---> System.DllNotFoundException: /usr/lib/libMonoPosixHelper

The resolution below will fix that.


Run the following command

ln -s /usr/lib64/ /usr/lib/