How to Install Radarr on Alpine Linux Latest

Radarr is an open-source movie management tool that automatically downloads movies when they become available on torrent or Usenet sites. In this tutorial, we will guide you through the steps to install Radarr on Alpine Linux.

Prerequisites

Step 1: Install Required Dependencies

Before installing Radarr, we need to install some dependencies. Run the following commands in the terminal:

apk update
apk add mono --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
apk add curl

The above commands will update the package list, install Mono and curl packages.

Step 2: Download and Install Radarr

  1. Download Radarr by running the following command:

    curl -L -O https://radarr.video/latest/Radarr.develop.0.2.0.1450.linux.tar.gz
    
  2. Extract the downloaded file:

    tar -xzvf Radarr.develop.0.2.0.1450.linux.tar.gz
    
  3. Move the extracted files to the /opt/radarr directory:

    mv Radarr /opt/radarr
    

Step 3: Configure Radarr

  1. Create a new user for Radarr:

    adduser -D -H radarr
    
  2. Change the ownership of the /opt/radarr directory to the newly created user:

    chown -R radarr:radarr /opt/radarr
    

Step 4: Start Radarr

  1. To start Radarr, navigate to the /opt/radarr directory:

    cd /opt/radarr
    
  2. Run the following command to start Radarr:

    mono Radarr.exe
    
  3. Wait for the installation to complete, and you will see the following message in the terminal:

    Press any key to exit...
    
  4. Press any key to exit the installation.

Step 5: Configure Radarr Service

If you want to run Radarr as a service, follow the steps below:

  1. Create a new file in the etc/init.d directory:

    nano /etc/init.d/radarr
    
  2. Paste the following code into the new file:

     #!/sbin/openrc-run
     name=radarr
     command="/usr/bin/mono /opt/radarr/Radarr.exe --nobrowser --data=/var/lib/radarr/"
     command_user=radarr
     directory="/opt/radarr"
     command_args="--nobrowser --data=/var/lib/radarr/"
     pidfile="/run/${name}/${name}.pid"
     output_log="/var/log/${name}.log"
     error_log="/var/log/${name}-error.log"
    
     depend() {
         need net
         before nginx
     }
    
     # Include openrc-run below, then execute it
     source /sbin/openrc-run
    

    This code will run Radarr as a service.

  3. Save and close the file.

  4. Change the permissions of the radarr file:

    chmod +x /etc/init.d/radarr
    
  5. Start the Radarr service:

    service radarr start
    
  6. Verify that the service is running:

    service radarr status
    

    You should see the following output if the service is running:

    * Caching service dependencies ...       [ ok ]
    * radarr                               [ started ]
    

Conclusion

In this tutorial, we have outlined the steps to install Radarr on Alpine Linux Latest. You can now automate the downloading of your favorite movies using Radarr.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!