Manage Flatpak, Snap, and AppImage packages with bauh
All-in-One

© Photo by Natalie Rhea Riggs on Unsplash
The bauh package manager can cope with Flatpaks, Snaps, AppImages, AUR, and native web apps.
Old-school Linux package formats like deb and RPM let you install an application with a couple of commands or mouse clicks – as long as all the dependencies are satisfied. If dependencies are missing, things get a bit more complicated, with the package manager chasing down additional packages and sometimes choking if a package isn't found or there is a version number conflict.
Next-generation tools like Snap, Flatpak, and AppImage have solved the dependency problem by packing dependencies with the package. Because they carry their dependencies with them, these modern-day formats are largely portable, installing on any Linux system as long as it has a compatible package manager.
But why so many formats? In the grand tradition of Linux, the community has solved the same problem several different ways. Does that mean you need several different package managers to read Snap, Flatpak, and AppImage formats?
Not anymore. Bauh [1] is a graphical package manager that can handle Snap, Flatpak, and AppImage formats from a single user interface. Bauh, which, your Brazilian friends will tell you, is pronounced ba-oh, meaning box or drawer, evolved from the Arch Linux fpakman package tool and also supports the Arch User Repository (AUR) package format. The bauh user interface lets you search for and install applications, install updates, delete unnecessary programs, and view the installation history.
Getting Started
On Arch Linux and its derivatives, you can install bauh via the user archive AUR by typing:
yay -S bauh
On Debian, Ubuntu, and their derivatives, install bauh using the pip installer from the Python universe. First, set up the required dependencies, which you will find in a list [2] on GitHub. Then type
sudo apt install python3-pip
to install Python3 pip, where you will then finally type the command for installing bauh:
sudo pip3 install bauh
In the next step, if you have not already done so, take care to install the bases for the package formats you want to manage with bauh. Flatpak is easiest to install directly from the Flathub [3] website, a central repository for Flatpaks. When you get there, click on the button labeled Quick Setup and in the next step select Debian, Arch Linux, or one of the distributions based on it. You will then receive instructions on how to install the Flatpak basics including the Flathub repo.
To be able to manage Snaps with bauh, you need to install snapd. Ubuntu from version 16.04 on, Solus 3, and Zorin OS already include the service out-of-the-box; installation instructions for other distributions are available on the Snapcraft website [4]. After installing snapd, you need to log out and back in, or reboot the system, to adapt the required environmental variables. As a functional test for Debian, try installing the Snap Store, using:
sudo snap install snap-store
AppImage is an older format that is becoming more and more popular due to the popularity of Flatpak and Snap. Bauh can only be used with apps that are offered via the AppImageHub [5] and are simultaneously hosted on GitHub. This includes over 1,000 programs, as you can see on AppImageHub. The dependencies on Debian, for example, are sqlite3 and wget, while Arch Linux needs sqlite and wget. Alternatively, for fast downloads with several threads, you can install the aria2 download manager.
On systems with Arch Linux, bauh additionally supports the AUR. The archive maintained by the distribution's community supports the integration of packages not officially available in Arch, much like a collection of recipes. As a prerequisite for the AUR, you need pacman and wget; here again, aria2 supports faster downloads.
Finally, bauh supports the integration of web apps. If you select this option, the system will automatically import some required dependencies, including Node.js, Electron, and nativefier [6]. You have to make sure that python-lxml and python-beautifulsoup4 are installed on Arch, and beautifulsoup4 and lxml on Debian. The two packages are not available in the Debian archives, so you will need to install them with pip as described earlier.
Configuration
Once you have fulfilled all the requirements for the desired formats, launch bauh. Start by clicking on the blue gear wheel in the bottom right corner and then on Application types. The window that opens should now show all the supported formats (Figure 1). These can be (de)activated in this window as required. If the list does not contain the desired formats, you need to recheck the dependencies.

After first launching bauh, which was developed in Python 3 and Qt5, the application automatically finds all previously installed applications belonging to the formats whose support you have unlocked and whose prerequisites and dependencies are met on the system (Figure 2). The central configuration file goes by the name of bauh.yml
and is located in ~/.config/
. In the file, you can specify, for example, whether bauh should display a tray icon, whether the icon should notify you in case of updates for managed apps, or how many suggestions for apps the package management program should display.

For the Non-Admins
The latest version, bauh 0.9.3, supports the installation of Flatpaks globally for the system, but you can also opt to install for the user. Installing for the end user has the advantage that normal user privileges are all you need to install or update packages. We encountered a minor problem on Debian with this feature that was not bauh's fault but rather Flatpak's.
When installing a Flatpak with bauh, you are prompted to decide whether to install the package globally or as a user. On Debian, installing as a user did not succeed; an error message indicated missing permissions. To work around this problem, you need to change the permissions in /var/tmp/
from 755
to 1777
. To do this, use the command:
sudo chmod 1777 /var/tmp
The important thing here is the 1
in the first digit. It stands for the sticky bit, an extended file right. The sticky bit restricts access to files in a directory. If the bit is set, only the owner of the file or directory is allowed to delete or rename the corresponding object. This does not affect the rights to write, read, and execute the file.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.
News
-
Rocky Linux 9.3 is Available for Download
The latest version of the RHEL alternative is now available and brings back cloud and container images for ppc64le along with plenty of new features and fixes.
-
Ubuntu Budgie Shifts How to Tackle Wayland
Ubuntu Budgie has yet to make the switch to Wayland but with a change in approaches, they're finally on track to making it happen.
-
TUXEDO's New Ultraportable Linux Workstation Released
The TUXEDO Pulse 14 blends portability with power, thanks to the AMD Ryzen 7 7840HS CPU.
-
AlmaLinux Will No Longer Be "Just Another RHEL Clone"
With the release of AlmaLinux 9.3, the distribution will be built entirely from upstream sources.
-
elementary OS 8 Has a Big Surprise in Store
When elementary OS 8 finally arrives, it will not only be based on Ubuntu 24.04 but it will also default to Wayland for better performance and security.
-
OpenELA Releases Enterprise Linux Source Code
With Red Hat restricting the source for RHEL, it was only a matter of time before those who depended on that source struck out on their own.
-
StripedFly Malware Hiding in Plain Sight as a Cryptocurrency Miner
A rather deceptive piece of malware has infected 1 million Windows and Linux hosts since 2017.
-
Experimental Wayland Support Planned for Linux Mint 21.3
As with most Linux distributions, the migration to Wayland is in full force. While some distributions have already made the move, Linux Mint has been a bit slower to do so.
-
Window Maker Live 0.96.0-0 Released
If you're a fan of the Window Maker window manager, there's a new official release of the Linux distribution that champions the old-school user interface.
-
KDE Plasma 6 Sets Release Date
If you've been anxiously awaiting the release of the next big KDE Plasma milestone, you can rest assured it's sooner than you think.