This guide covers the installation process for xfetch on various operating systems.
xfetch is built with Rust. You must have the Rust toolchain installed on your system.
To install Rust, run the following command (works on Linux and macOS):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shFor Windows, download the installer from rust-lang.org.
-
Install dependencies: You may need development tools and libraries for image processing.
sudo apt update sudo apt install build-essential pkg-config libssl-dev
-
Clone and Install:
git clone https://github.com/xscriptordev/xfetch.git cd xfetch cargo install --path .
-
Add to PATH: Ensure
~/.cargo/binis in your PATH.
-
Install dependencies:
sudo pacman -S base-devel
-
Clone and Install:
git clone https://github.com/xscriptordev/xfetch.git cd xfetch cargo install --path .
This method installs xfetch as a proper Arch package, making it easy to update and remove.
-
Clone the repository:
git clone https://github.com/xscriptordev/xfetch.git cd xfetch -
Build and install the package:
makepkg -si
This will:
- Download dependencies automatically
- Build the package from source
- Install it system-wide to
/usr/bin/xfetch
-
Verify installation:
xfetch
Note: Config examples and logos are installed to
/usr/share/xfetch/.
To uninstall:
sudo pacman -R xfetch-git-
Install dependencies (optional, usually handled by cargo/homebrew): Ensure you have Xcode Command Line Tools installed:
xcode-select --install
-
Clone and Install:
git clone https://github.com/xscriptordev/xfetch.git cd xfetch cargo install --path .
-
Prerequisites: Ensure you have the Visual Studio C++ Build Tools installed (usually part of the Rust installation setup).
-
Clone and Install: Open PowerShell or Command Prompt:
git clone https://github.com/xscriptordev/xfetch.git cd xfetch cargo install --path .
-
Running: You can now run
xfetchfrom any terminal window.
After installation, verify it works by running:
xfetchOr test a specific config:
xfetch --config configs/config_11_pacman.jsonc