Qdirstat AUR Guide: qdirstat, qdirstat-git and qdirstat-bin Explained

By the Qdirstat Guides TeamUpdated 3 December 20267 min read
Hands assembling a small circuit board at a workbench

The Arch User Repository provides community packaging recipes for Qdirstat. The package you choose determines whether your system compiles a tagged release, builds from current development code, or installs a binary prepared elsewhere. Read the recipe before building so you know which files the package downloads and how it installs them.

The steps below cover helper and manual installation, show how to switch packages without losing personal settings, and explain when to rebuild Qdirstat after a Qt update on a rolling release system.

This Qdirstat AUR guide explains what the AUR actually is, compares the three Qdirstat packages, walks through installation with and without an AUR helper, and covers the maintenance habits that keep an AUR-built Qdirstat running smoothly.

What the AUR Is and Why It Matters

The AUR is a community-driven collection of build scripts. It does not host compiled software. Instead, each AUR entry contains a PKGBUILD, a small shell script describing where to download the source code, which dependencies are required and how to compile and package the result. When you install Qdirstat from the AUR, your own computer downloads the Qdirstat source and builds it locally.

This model is powerful because almost any software can be packaged quickly, but it also places trust in the PKGBUILD author. AUR packages are not reviewed in the same way as official packages, so reading the PKGBUILD before building is a fundamental part of using the AUR responsibly.

The Three Qdirstat AUR Packages

PackageWhat it buildsBest for
qdirstatLatest stable Qdirstat release from tagged sourceMost users
qdirstat-gitCurrent Qdirstat development branchTesters and early adopters
qdirstat-binPrebuilt Qdirstat binary repackagedLow-power machines that should avoid compiling

These packages conflict with one another because they all install the same Qdirstat files. You can only have one of them installed at a time, and pacman will offer to replace one with another if you switch.

qdirstat: The Stable Choice

The qdirstat package tracks official Qdirstat releases. With Qdirstat 2.0 it depends on Qt 6 through qt6-base and qt6-5compat, along with zlib. It is well maintained, widely used and has accumulated a large number of votes, which is a useful signal of community trust.

qdirstat-git: The Development Edition

The qdirstat-git package clones the Qdirstat repository and builds whatever is currently on the development branch. Its version number includes a commit count and hash so you can see exactly what you are running. You gain new Qdirstat features sooner, but you may occasionally meet bugs or build failures that have not yet been fixed.

qdirstat-bin: The Precompiled Option

The qdirstat-bin package skips compilation by repackaging an existing binary. It installs quickly but can lag behind releases and may break when system Qt libraries move to a version the binary was not built against. Consider it only if compilation time is a real problem for you.

Installing Qdirstat from the AUR with a Helper

AUR helpers automate the download, review, build and install cycle. With yay:

yay -S qdirstat

With paru:

paru -S qdirstat

Both helpers display the PKGBUILD and any changes since your last build. Take a moment to read it. For Qdirstat you should see the source downloaded from the official Qdirstat repository on GitHub, a standard build with qmake and make, and installation into the package directory. Anything unexpected, such as downloads from unrelated hosts, is a reason to stop and investigate.

Installing Qdirstat from the AUR Manually

Manual installation teaches you exactly what happens behind the scenes and requires no extra tools beyond the standard build group:

sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/qdirstat.git
cd qdirstat
cat PKGBUILD
makepkg -si

The -s flag installs missing dependencies with pacman, and -i installs the resulting Qdirstat package once the build succeeds. The built package file remains in the folder, so you can reinstall it later without compiling again.

Building the Git Version Manually

The process for qdirstat-git is identical except for the repository you clone:

git clone https://aur.archlinux.org/qdirstat-git.git
cd qdirstat-git
makepkg -si

Making Builds Faster and Cleaner

Qdirstat is a modest C++ project, so it compiles reasonably quickly, but you can speed things up by allowing parallel compilation. Edit /etc/makepkg.conf and set the MAKEFLAGS line to match your CPU cores, for example MAKEFLAGS="-j$(nproc)". Avoid hard-coding such flags in the PKGBUILD itself; the global configuration is the correct place.

Building in a clean chroot with devtools is another option for users who want reproducible builds isolated from their main system, though for a desktop utility like Qdirstat a normal build is perfectly adequate.

Updating and Maintaining an AUR Qdirstat

Routine Updates

If you used an AUR helper, run yay -Syu or paru to update official and AUR packages together. When a new Qdirstat release appears, the helper rebuilds it automatically.

For manual installations, return to the cloned folder and run:

git pull
makepkg -si

Rebuilding After Qt Updates

Because AUR packages are compiled against your current libraries, a large Qt upgrade can occasionally leave Qdirstat unable to start. If you see an error about incompatible Qt libraries, rebuild the package. With yay you can force a rebuild using yay -S qdirstat --rebuild.

Cleaning Up Build Leftovers

Ironically, building Qdirstat leaves files that take disk space. AUR helpers keep source and build directories in ~/.cache/yay or ~/.cache/paru. Open Qdirstat on your home directory after a few months and you will likely see these caches clearly. Clearing them with yay -Sc or by removing old build folders is safe once packages are installed.

Switching Between Qdirstat AUR Packages

To move from qdirstat to qdirstat-git, simply install the new package. Pacman detects the conflict and offers to remove the existing Qdirstat package. Your settings, stored in ~/.config/Qdirstat, remain untouched, so exclude rules and custom cleanup actions carry over automatically.

Troubleshooting Qdirstat AUR Builds

“One or More PGP Signatures Could Not Be Verified”

Some PKGBUILDs verify signed source archives. If makepkg reports an unknown public key, import the key listed in the PKGBUILD’s validpgpkeys array with gpg --recv-keys after confirming it belongs to the expected maintainer. Never bypass signature checks without understanding why they failed.

Missing Build Dependencies

Errors such as “qmake6: command not found” mean the build tools are absent. Running makepkg with the -s flag installs dependencies automatically, and ensuring base-devel is installed covers the compiler and make tools that every AUR build expects.

Compiler Errors After a Toolchain Update

Occasionally a new GCC release exposes code that older compilers accepted. Stable Qdirstat releases rarely suffer from this, but qdirstat-git sometimes does. Read the comments on the AUR page, where maintainers and users usually post fixes within days, and consider switching to the stable package until the issue is resolved.

Qdirstat Starts but the Treemap Looks Wrong

Graphical glitches typically come from mismatched Qt plugins or themes rather than from Qdirstat itself. Make sure your Qt 6 platform theme packages are current, and try launching Qdirstat with QT_QPA_PLATFORM=xcb qdirstat to rule out Wayland-specific behaviour.

Conflicting Files During Installation

If pacman reports that Qdirstat files already exist, you may have installed Qdirstat earlier with sudo make install from source. Those files are not tracked by pacman. Remove them carefully, or run sudo make uninstall in the old source directory, before installing the AUR package. The Qdirstat unpackaged files view is an excellent way to spot such leftovers.

Good AUR Habits That Protect Your System

  • Read every PKGBUILD and any .install script before building Qdirstat or any other AUR package.
  • Prefer packages with an active maintainer, recent updates and many votes.
  • Never run makepkg as root; it refuses to do so for good reason.
  • Keep the number of AUR packages reasonable so updates stay manageable.
  • Follow the AUR page comments for Qdirstat to learn about known issues early.

These habits cost only a few seconds per update, yet they keep the convenience of the AUR from becoming a security risk.

Frequently Asked Questions

Is it safe to install Qdirstat from the AUR?

Yes, provided you review the PKGBUILD. The popular Qdirstat packages download source code from the official repository and build it with standard tools.

Why does the Qdirstat AUR package need Qt 6?

Qdirstat 2.0 moved to Qt 6, so the stable package depends on qt6-base and qt6-5compat. Older Qdirstat releases used Qt 5.

Can I keep Qdirstat settings when switching AUR packages?

Yes. Qdirstat stores its configuration in your home directory, which is not affected when one package replaces another.

Do I need an AUR helper to install Qdirstat?

No. Helpers are convenient, but git clone followed by makepkg -si installs Qdirstat just as well.

Conclusion

The Qdirstat AUR packages make it easy to run this excellent disk analyser on Arch and its derivatives. Choose qdirstat for stability, qdirstat-git for the newest features or qdirstat-bin to avoid compiling. Review each PKGBUILD, update regularly, rebuild after major Qt changes, and Qdirstat will remain a dependable part of your Arch toolkit.