This wiki page will guide you through getting onefetch working on your system.
Table of Contents
Universal Install
If your architecture is supported by the pre-built binaries, you can download them from the releases page.
Build from source
First, install rust toolchain with rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
[!IMPORTANT] Ensure CMake is installed.
git clone https://github.com/o2sh/onefetch
cd onefetch
make install
Cargo
First, install rust toolchain with rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
[!IMPORTANT] Ensure CMake is installed.
cargo install onefetch
This method will build the binary from source.
To update, run
cargo install onefetch --force
Snap
For a system with Snap installed, run
snap install onefetch
The stable version will be installed for you automatically.
OS/Distro Packages
Alpine Linux
- Update repositories
apk update
- Install the package
apk add onefetch
Arch
Onefetch is available in the official repos.
- Install the package
pacman -S onefetch
Fedora
Install it from the COPR
sudo dnf copr enable varlad/onefetch
sudo dnf install onefetch
FreeBSD
Install it from the official repositories
pkg install onefetch
Funtoo
Funtoo has an autogenerated onefetch package in the official kits:
emerge app-misc/onefetch
MacOS
HomeBrew
Install onefetch with Homebrew
brew install onefetch
To update, run
brew upgrade onefetch
MacPorts
Install onefetch with MacPorts
sudo port selfupdate
sudo port install onefetch
To update run,
sudo port upgrade onefetch
NetBSD
Install it from the official repositories.
pkg_add onefetch
NixOS
Install it from the official repositories
nix-env -i onefetch
openSUSE Leap or Tumbleweed
Install it from the official repositories.
zypper install onefetch
Ubuntu (ppa)
sudo add-apt-repository ppa:o2sh/onefetch
sudo apt-get update
sudo apt-get install onefetch
If your Ubuntu version isn't supported, use snap.
Void Linux
Install it from the official repositories
sudo xbps-install -S onefetch
Windows
Winget
You can install onefetch using winget
winget install onefetch
Scoop
For Scoop users, onefetch is available from the "Extras" bucket
scoop bucket add extras
scoop install onefetch
Chocolatey
If you prefer to use Chocolatey to manage software, it can be installed like so
choco install onefetch