SABnzbd

Wiki

User Manual FAQ Contact Introduction Installation Configuration Scripts Advanced Topics Extensions for SABnzbd

Incorrect or missing information? Fedora and RHEL/CentOS/Scientific Linux RPM

PLEASE NOTE:
These packages or guides are not created by the SABnzbd team.
The team cannot support these packages!


Third-party repository

The nuxref repository is available here and works with RPM based distributions such as Fedora, Red Hat, CentOS, Scientific Linux, and Oracle Linux. The more extensive guide can be found here.
After installing the repository run yum install sabnzbd or dnf install sabnzbd (Fedora).
Once installed, you can start SABnzbd by typing sabnzbd in a terminal.

From sources

Because the RPM's might not always be up-to-date, we include a guide to install from source, provided by user jpriddy.

All commands to be run with a user with sudo privileges or prefixed with the 'sudo' command.

  1. Make sure you have access to the default rpm channel. For RHEL that means enabling the repos like so (you will of course need an active subscription that is subscribed):
    subscription-manager repos --enable=rhel-7-server-rpms
    For CentOS there is no subscriptions to speak of, so just make sure you have not modified the default reop settings.
  2. For RHEL/CentOS add the nux repo for the 'bad' copyright/source encumbered rpms such as unrar.
    nux may also require you to have a source for its prereqs from EPEL to have a source for its prereqs from EPEL.
    https://li.nux.ro/repos.html
  3. Install git:
    yum install git
  4. Install the prereqs. Example below (there may be more prereqs I neglected to track):
    yum install par2cmdline python-yenc python-cheetah unrar
  5. Clone the sabnzbd git repo to /opt or somewhere else applicable and switch to the master branch:
    git clone https://github.com/sabnzbd/sabnzbd
    cd /opt/sabnzbd
    git checkout master
  6. Optionally create a SABnzbd user/group, optionally add user to shared group, and change ownership of the SABnzbd install to said user/group. Example:
    useradd sabnzbd
    chown -R sabnzbd:sabnzbd /opt/sabnzbd
  7. Optionally create a startup item for systemd and copy it to /etc/systemd/system/. Call it sabnzbd.service or something else applicable. Make sure to set the correct User and Group matching the account on your system.
    #
    # Systemd unit file for SABnzbd
    #
    
    [Unit]
    Description=SABnzbd Daemon
    
    [Service]
    Type=forking
    User=sabnzbd
    Group=sabnzbd
    ExecStart=/usr/bin/python /opt/sabnzbd/SABnzbd.py --daemon --config-file=/opt/sabnzbd/sabnzbd_config.ini -s 0.0.0.0
    GuessMainPID=no
    
    [Install]
    WantedBy=multi-user.target
  8. Here we're going to setup the firewall rule to allow the service to be reachable over the network.
    vi /etc/firewalld/services/sabnzbd.xml
    Then add the following code to the file:
    <service>
      <short>sabnzbd</short>
      <description>SABnzbd Service</description>
      <port protocol="tcp" port="8080"/>
    </service>
    Use the following commands to activate the firewall rule:
    firewall-cmd --permanent --add-service=sabnzbd
    firewall-cmd --reload
  9. Enable and start the newly created sabnzbd service:
    systemctl enable sabnzbd
    systemctl start sabnzbd
    Be sure to run a systemctl daemon-reload after editing any systemd files.
  10. Browse to $yourserver:8080, profit.