Neofetch is a free, open-source command-line system information tool that displays system information and an image of your operating system’s logo. It is a popular tool among Linux users and can be easily installed on Rocky Linux 9 or Rocky Linux 8 using the command line terminal.
Step 1: Update Rocky Linux
Before installing Neofetch, it is important to update the package list to ensure that you are installing the latest version. To do this, open the terminal and enter the following command.
sudo dnf upgrade --refresh
Step 2: Import EPEL Repository
Importing the Extra Packages for Enterprise Linux (EPEL) repository on Rocky Linux is simple. The EPEL repository provides additional packages not included in the default Rocky Linux repositories. The following commands will demonstrate how to do this but ensure you use the correct command for your Rocky Linux distribution version.
Import EPEL for Rocky Linux 9
First, enable the CRB.
sudo dnf config-manager --set-enabled crb
Next, install EPEL using the following (dnf) terminal command.
sudo dnf install \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \ https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
Import EPEL for Rocky Linux 8
The same command for Rocky Linux 8 as it was for 9, just with different paths for Enterprise Linux 8 releases.
sudo dnf install \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \ https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-8.noarch.rpm
Step 4: Install Neofetch
Next, we can install Neofetch by entering the following command.
sudo dnf install neofetch -y
Once installed, verify the installation and build using the neofetch –version command.
Lastly, test Neofetch in your terminal with the following command.
More information can be found using the command.
Step 5: Additional Commands & Tips
Neofetch can be updated from your terminal using the standard update or upgrade commands. The best method is using the all-in-one command to blanket-check your system for upgrades, which will include Neofetch if one is available.
sudo dnf upgrade --refresh
Remove (Uninstall) Neofetch
Run the following command for users who no longer wish to have Neofetch installed.
sudo dnf remove neofetch -
The removal command will also uninstall any unused dependencies on your system.
I would advise keeping the EPEL repository installed, many packages for RHEL clones are imported directly from it, and no doubt it will be helpful in the future.
Neofetch is a useful tool for displaying system information on Rocky Linux. Installing, updating, and removing Neofetch is straightforward, as shown in the guide using the command line terminal so you can easily manage Neofetch on your Rocky Linux system.