Need to install Netdata on Fedora 38?
I’ve got you covered.
Netdata is a free and open-source monitoring tool for FreeBSD, macOS, and Linux-based operating systems. There are several approaches you can take to install Netdata on Fedora. I’ll cover two of the most convenient methods in this guide.
Note: I’m using Fedora 38 with the Xfce desktop environment for demonstration purposes.
What You’ll Need
- Fedora 38 installed and running (guide)
- Familiarity with the Command Line Interface (CLI) and CLI commands (guide)
- Root account or sudo privileges (guide)
- A stable internet connection
(Recommended) Method 1: Install Netdata on Fedora Using the Kickstart Script
This is the easiest and most recommended method of installing Netdata on Linux systems, including Fedora.
The Netdata team provides a kickstart installation script that automatically installs the necessary dependencies. It also builds Netdata from the source.
Step 1: Download the Netdata One-Line Installer Script
You must first download the script from the official website. You can use either the wget command or the curl command.
- Run any of the below commands to download the script:
wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh
curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh
- To confirm if the download was successful or not, you can use the
lscommand like this:
As you can notice from the above screenshot, the download was successful in my case, and the file is located in the chosen directory.
- Another thing you can do is verify the integrity of the script. What that means is that you will verify whether the script comes from Netdata or not. To verify its integrity, run the below command:
[ "e72c22b3ff4db284c2f36da726759121" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
If the script comes from the official source, you should see OK, VALID as the output, as you can notice from the above screenshot.
Step 2: Install Netdata Using the Script
After downloading the script, you can now install it. But since the script is not executable yet, you need to do that first in order to run the script.
- Navigate to the directory where you downloaded the script. If you followed this tutorial, then it should be in the /tmp/ directory. Navigate there with this command:
- Convert the script into an executable file with the below command:
chmod +x netdata-kickstart.sh
- Now that your script is executable, you can run it on your system. Run the script with the below command:
- Enter y and press the Enter button to confirm the installation. You’ll need to confirm once again when verifying it using GPG. So do that once more.
And that covers the script method of installing Netdata on Fedora.
Method 2: Install Netdata on Fedora Native Packages
Netdata provides pre-built packages for most Linux distributions, including Fedora. You can install an RPM package of Netdata.
Step 1: Form the RPM Package Repository baseurl
In this step, I’ll show you how to make the baseurl for the Netdata repository. You’ll need this baseurl later on when creating a repo file for Netdata.
The Netdata software packages are located at https://repo.netdata.cloud/repos. However, depending on the distribution, distro version, and architecture, you’ll have to add more to the URL before adding it.
I’ll cover all these right now.
The first thing to do before installing any package is to update your software repository list. This ensures you have the latest packages available for installation.
- Update your system by running this command:
sudo yum update
- I will now walk you through the process of getting the baseurl of the repository. There are four groups of Netdata packages: stable, edge, repoconfig, and devel. For this tutorial, I’ll download it from the stable repo. These packages are stable releases of the Netdata agent. Adding the group to the link results in this:
- Now, you choose the Linux flavor. In this case, it’s Fedora. So add the distro name to the link in lowercase, like this:
- Next, add the version of the distribution to the link, 38 in this case.
- Then, add the system architecture. You have two options: x86_64 and aarch64. I’m going with x86_64.
Now you have the baseurl. You’re now ready to create a repository file for Netdata.
Step 2: Create a repo File for Netdata
For this step, you’ll need a text editor. I’m going to use the Nano text editor for this one.
- Create a repo file for Netdata in Nano by running this command:
sudo nano /etc/yum.repos.d/netdata.repo
- In the file, add the below configuration:
- Once done, save the file using Ctrl+O and exit using Ctrl+X keys.
- Now update your repo list once again with this command:
sudo yum update
- When you see a confirmation prompt, enter y and then press the Enter button.
That should add the repository to your repo list. The only thing left is to install the RPM package.
Step 3: Install the Netdata RPM Package
Let’s now install Netdata on Fedora.
- To install the RPM package, run the below command:
sudo yum install netdata
When asked for confirmation, enter y and press the Enter button.
- You can verify the installation by checking its version. Check Netdata’s version with this command:
- After Netdata is installed, you must start its process to be able to use it. Start Netdata with the below command:
systemctl start netdata
- Then check whether the process is successfully running with this command:
systemctl status netdata
The green active status indicates that it’s running properly.
- However, if you shut down your system, the process will stop. If you want to start Netdata every time you turn on your device, then you must enable it. Enable Netdata with this command:
systemctl enable netdata
And that finishes the second method for installing Netdata on Fedora.
This guide shows you two different methods of installing the Nedata monitoring tool on Fedora 38. To reiterate, if you’re a beginner (or even an expert), the recommended and easiest way to install Netdata is by using the one-liner script. But if you want to do everything manually, go with the second method.
Interested in system monitoring for your Linux system? Check out how to monitor your server’s resource consumption on Linux or how to monitor and optimize power usage on Linux.
If this guide helped you, please share it.