Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Install

Your systemHow
Arch LinuxPrebuilt package
macOS 11 or laterDisk image
Windows 10 or 11, 64-bitInstaller or zip
Ubuntu, Linux Mint, DebianBuild from source
FedoraBuild from source
Another Linux distributionBuild from source

Arch, macOS and Windows have a ready-made download. Everywhere else, Débarras is compiled on your machine. The first build takes a few minutes.

Compiling needs a recent stable Rust. If rustc --version shows less than 1.88, install Rust with rustup.

Arch Linux

Every release ships a ready-to-install package. No compiler is needed, and pacman tracks it as debarras.

curl -LO https://github.com/alarboulletmarin/debarras/releases/latest/download/debarras-x86_64.pkg.tar.zst
sudo pacman -U ./debarras-x86_64.pkg.tar.zst

Download the file first, as above. The package is not signed: given a URL, pacman looks for a .sig file and warns when there is none.

To build the latest tagged release yourself, run makepkg -si from the root of the repository.

Débarras is not on the AUR yet.

macOS

Download debarras-macos.dmg. It runs on Apple Silicon and Intel. Open it and drag Débarras to Applications.

The app is not notarized, because that needs a paid Apple Developer account. So macOS blocks the first launch:

  1. Open System Settings, then Privacy & Security.
  2. Scroll down and click Open Anyway.

Or run this once in a terminal:

xattr -dr com.apple.quarantine /Applications/Debarras.app

To scan folders such as Documents or Downloads, macOS asks for permission the first time. To scan the whole home folder without a question per folder, give Débarras Full Disk Access in Privacy & Security.

To compile it yourself, you need Xcode (the full app, for the Metal shader compiler) and Rust:

git clone https://github.com/alarboulletmarin/debarras.git
cd debarras
cargo install --path . --locked

This installs the debarras command in ~/.cargo/bin, without the .app bundle. Start it from a terminal.

Windows

Download debarras-windows-x86_64-setup.exe and run it. It installs for your user only, with no administrator rights, and adds a Start menu entry and an uninstaller.

To install nothing, take debarras-windows-x86_64.zip instead. Unzip it anywhere and run debarras.exe.

The files are not signed, because a code-signing certificate costs a few hundred euros a year. SmartScreen may show "Windows protected your PC": click More info, then Run anyway.

To compile it yourself, you need the Visual Studio C++ build tools with the Windows SDK, and Rust with the MSVC toolchain:

git clone https://github.com/alarboulletmarin/debarras.git
cd debarras
cargo install --path . --locked

This installs debarras.exe in %USERPROFILE%\.cargo\bin.

Ubuntu, Linux Mint, Debian

  1. Install the build tools and libraries:

    sudo apt install build-essential pkg-config libfontconfig-dev libfreetype-dev \
      libwayland-dev libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libvulkan1
    
  2. Install Rust with rustup. The cargo from apt is usually too old.

  3. Build and install:

    git clone https://github.com/alarboulletmarin/debarras.git
    cd debarras
    make
    sudo make install
    

Fedora

Follow the steps above with these packages. Their names have not been tested.

sudo dnf install gcc pkgconf-pkg-config fontconfig-devel freetype-devel \
  wayland-devel libxcb-devel libxkbcommon-devel libxkbcommon-x11-devel vulkan-loader

Other Linux distributions

You need:

  • the development files of fontconfig, freetype, Wayland, libxcb and libxkbcommon (with its X11 part);
  • a Vulkan driver for your GPU;
  • Rust.

Then:

make                    # cargo build --release --locked
sudo make install       # PREFIX=/usr/local by default, PREFIX=/usr for a system-wide install

make install adds the debarras command, an entry in your application menu, and its icon. sudo make uninstall removes them.

Upgrading

Débarras does not update itself. To upgrade:

Installed withUpgrade
Arch, prebuilt packagerun the two commands of Arch Linux again
macOS, .dmgdownload the new .dmg and drop Débarras on Applications again
Windows, installerrun the new installer: it upgrades in place
Windows, .zipunzip the new version over the old one
make installgit pull, then make and sudo make install
cargo installgit pull, then cargo install --path . --locked