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
- A running instance of Alpine Linux Latest
- Access to a terminal with administrative privileges
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
Download Radarr by running the following command:
curl -L -O https://radarr.video/latest/Radarr.develop.0.2.0.1450.linux.tar.gzExtract the downloaded file:
tar -xzvf Radarr.develop.0.2.0.1450.linux.tar.gzMove the extracted files to the
/opt/radarrdirectory:mv Radarr /opt/radarr
Step 3: Configure Radarr
Create a new user for Radarr:
adduser -D -H radarrChange the ownership of the
/opt/radarrdirectory to the newly created user:chown -R radarr:radarr /opt/radarr
Step 4: Start Radarr
To start Radarr, navigate to the
/opt/radarrdirectory:cd /opt/radarrRun the following command to start Radarr:
mono Radarr.exeWait for the installation to complete, and you will see the following message in the terminal:
Press any key to exit...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:
Create a new file in the
etc/init.ddirectory:nano /etc/init.d/radarrPaste 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-runThis code will run Radarr as a service.
Save and close the file.
Change the permissions of the
radarrfile:chmod +x /etc/init.d/radarrStart the Radarr service:
service radarr startVerify that the service is running:
service radarr statusYou 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.