better-pkg is a universal CLI package managers wrapper for various Linux distributions and package managers. It allows you to install, remove, search, export, and manage packages and plugins and more from just one script, whether you use APT, DNF, Pacman, Zypper, Flatpak, Snap, Homebrew, and more.
- Just one python script
- Universal install/remove/search for packages (apt, dnf, pacman, zypper, yay, paru, flatpak, snap, brew, pacstall, appimage)
- Universal update and cleanup (apt, dnf, pacman, zypper, yay, paru, flatpak, snap, brew, pacstall, distrobox, firmwa
- Export/import package lists (for migration or backup)
- Plugin support – easily extend with new features
- Automation of common tasks (update, upgrade, cleanup, repair, cache)
- Security checks (firewall, SELinux, auditd, fail2ban, sudoers, ...)
- Colorful, user-friendly output
- Aliases and custom configuration support
- Install app that are not in distros repo, from its github or official site
And these features are coming soon:
- Add better distrobox integration
- Updated plugins API
- Better Appimage integration
- Better RPM-ostree support
-
Requirements:
- Python 3
- dbus-x11, python-requests and python-distro
- dnf-plugins-core for adding dnf repos
- Recommended:
wget,curl,sudo, and your package managers (apt, dnf, pacman, ...)
-
Download python file from releases
-
(Optional) Add to your PATH:
sudo cp better-pkg /usr/local/bin/
Or you can install it via brew (note that you will still need to install dbus-x11, python-requests and python-distro):
brew tap existingperson08/tap
brew install better-pkg- Pull requests and ideas are welcome!
- For most new features create plugins.