Install Neofetch on CentOS 9 Stream: A Quick‑Start Guide
If you just upgraded to CentOS 9 Stream and ran `neofetch`, the shell probably spit out “command not found.” The reason? Neofetch isn’t in the default repos, but it’s still easy to get. This article walks through enabling the right repository, installing the package with `dnf`, and verifying everything works.
Why You’ll Want Neofetch
Neofetch is that handy little script that prints a colorful banner of your OS, kernel, uptime, and more whenever you open a terminal. It’s great for sharing system snapshots on forums or just checking what version you’re running after an update. A quick install can save hours spent hunting down the same info.
Prerequisites
- CentOS 9 Stream running with root or sudo privileges.
- An active internet connection to pull packages from Fedora’s mirrors.
- (Optional) `curl` or `wget` if you prefer manual downloads, but not needed for the steps below.
Step‑by‑Step Installation
1. Enable the CRB repository
The “CRB” (Core RPM Bundle) repo contains many community packages that aren’t in AppStream yet, including Neofetch on CentOS 9 Stream.
sudo dnf config-manager --set-enabled crb
Why this matters: Without CRB, `dnf` will look only at the limited default repos and never find Neofetch.
2. Refresh metadata
sudo dnf clean all && sudo dnf makecache
Why this matters: This clears any stale cache that might point to an old repo state, ensuring you get the latest package list.
3. Install Neofetch
sudo dnf install neofetch -y
The `-y` flag skips confirmation prompts—good if you’re scripting or just want it done fast.
4. Verify the install
neofetch --version
You should see something like `Neofetch 9.0.1`. If the command still fails, double‑check that CRB is enabled (`dnf repolist` shows it).
Optional Tweaks
- Add Neofetch to your shell prompt:
Append `neofetch --stdout | lolcat` to your `.bashrc` if you love rainbowed output. Replace `lolcat` with any colorizer, or remove it for plain text.
- Configure the banner:
Edit `/etc/neofetch/config.conf` (or create `~/.config/neofetch/config.conf`) and set `info="uptime"` to only show uptime, or comment out lines to customize what appears.
Real‑World Scenario
After a recent kernel bump on CentOS 9 Stream, a user noticed that running `neofetch` produced an error. The culprit was the disabled CRB repo; once it was reenabled, Neofetch worked immediately and displayed the new kernel version with flair. No more chasing around for system details.
That’s all there is to it—install, tweak if you wish, and enjoy a quick snapshot of your server or desktop each time you open a terminal.