
Ubuntu was one of the easiest places to run Neofetch, and on Ubuntu 24.04 LTS it still is. This guide covers the Neofetch apt install, common errors, and what to do on releases where the package is gone.
Install Neofetch on Ubuntu 24.04 and older
Neofetch 7.1.0 is in Ubuntu's universe repository. Open a terminal and run:
sudo apt update
sudo apt install neofetch
neofetch
The package is tiny – about 82 kB to download – and recommends pciutils for GPU detection and w3m-img for image support.
Fix “Unable to locate package neofetch”
This error has two common causes.
The universe repository is disabled
Minimal and server installs sometimes ship without universe. Enable it and try again:
sudo add-apt-repository universe
sudo apt update
sudo apt install neofetch
Your release no longer includes it
Debian removed Neofetch from unstable and testing in January 2025, so Debian 13 (Trixie) does not ship it, and newer Ubuntu releases built from that base may not either. Check with apt policy neofetch. If nothing is listed, use one of the options below.
Option A: install from source
Download the ZIP from our Neofetch download section, then:
unzip neofetch-master.zip
cd neofetch-master
sudo make install
This copies the script to /usr/bin and the man page to /usr/share/man. To remove it later, run sudo make uninstall in the same folder.
Option B: use a maintained alternative
sudo apt install fastfetch– Debian 13+ and Ubuntu 25.04+.sudo apt install hyfetch– includesneowofetch, an updated Neofetch.
Show Neofetch every time you open a terminal
Add it to the end of your Bash startup file:
echo "neofetch" >> ~/.bashrc
Open a new terminal to see it. Remove the line later if it slows down your shell.
Uninstall
sudo apt remove neofetch
rm -r ~/.config/neofetch # optional: delete your config
Ubuntu flavours and derivatives
Kubuntu, Xubuntu, Ubuntu MATE, Linux Mint and Pop!_OS use the same Ubuntu archive, so the same sudo apt install neofetch command works on versions based on Ubuntu 24.04 or older. Neofetch detects the flavour and shows the matching logo, such as Linux Mint's, automatically. If you prefer the Ubuntu logo anyway, run neofetch --ascii_distro ubuntu.
Install it inside WSL or a container
The same apt commands work in Ubuntu on WSL and in Ubuntu-based Docker images. In a container, run apt-get update && apt-get install -y neofetch. Neofetch will report the container or WSL environment rather than the host machine, which is useful for checking what a build image contains.
Customise it after installing
Run Neofetch once to create ~/.config/neofetch/config.conf. Edit the print_info() block to choose fields, set ascii_distro="ubuntu_small" for a compact logo, or set colors=(distro) to a list of colour numbers to restyle the labels.
More questions
Which Ubuntu versions have Neofetch?
Ubuntu 24.04 LTS and older releases include it in universe.
Is Neofetch in Debian 13?
No. Debian removed it in January 2025.
How do I remove it?
sudo apt remove neofetch.
Final thoughts
On Ubuntu 24.04, the Neofetch apt install is one command. On Debian 13 and later releases, install from source or switch to Fastfetch. For other systems, see Neofetch on Arch and Neofetch on Windows and macOS.
Get Neofetch
Neofetch 7.1.0 · MIT · Bash · direct ZIP from GitHub


