maintained by: @hkdb
A Unified Package Management Experience for users who either want a reproduceable workstation build or simply handle a lot of machines with ease.
App is a cross-platform package management wrapper written in Go that remembers all the additional packages a user installs on a machine beyond the base installation so that all the same packages can be automatically reinstalled on another machine with one command. It also provides the same command line interface across different distros/OS's and package managers so you don't have to remember the various syntax across different OS's and package managers. Last but not least, it allows users to upgrade all software packages installed on a system with a user defined set of package managers (ex. apt, flatpak, and AppImage) via a single command.
Supported OS:
Supported Package Managers:
SUPPORT & ROADMAP
section)This fun project came to life because I have multiple machines and am constantly re-installing them. I also review and or get new laptops fairly often.
THIS IS STILL ALPHA SOFTWARE
Skip all the mumbo jumbo if you just want to see how to INSTALL and UPGRADE app.
Instead of using your package manager, you use the app command to install/remove packages so that it records everything inside ~/.config/app
. So when you move that directory to a new machine of the same based distro or OS, you can just install all the packages you have installed on the old machine with one command. In fact, if you move your ~/.config
directory on a Linux machine to the next, it should retain most of your app settings that reside in ~/.config
as well but be aware of config structual changes between varying versions of the same software.
See APP CONFIG DIRECTORY STRUCTURE to learn more about what's inside ~/.config/app
.
See the available options (flags) of app.
See USAGE EXAMPLES to see a more complete dive into how to use app.
Run the below command in the terminal:
bash <(curl -sL https://hkdb.github.io/app/getapp.sh)
You can also install app by compiling yourself:
git
manually if it's not already installed~/.config
(mkdir ~/.config
if it doesn't already exist)cd app
git checkout <version>
./install.sh
# Note, for FreeBSD, bash must first be installed.Run the below command in the terminal:
app -m app update
You can also update app by compiling it yourself:
Tracking versioned release:
~/.config/app
if you took my recommendation git pull
git checkout <version tag>
./update.sh
# FreeBSD requires bash to be installedTracking main branch:
~/.config/app
if you took my recommendation git pull
./update.sh
# FreeBSD requires bash to be installedCurrently in the roadmap:
Pre-requisites
:
Curl and Unzip must be installed
There's an install script that comes with this repo which is the preferred way to install app. However, I leave having each of your package managers proper setup/configuration to the end user before running app. For example, if you don't have the right packages installed to have add-apt-repository work properly on Debian or flatpak can't be used without sudo, then app will inevitably fail.
See the below notes on package manager setup:
If there are enabled package managers that you absolutely hate and want out of the auto restore/install all loop, you can disable them manually (ie. app -m snap disable
) and app will remember this whereever you bring your ~/.config/app
directory. You can also re-enable them anytime by just running app -m <package manager> enable
Other distros
:
Some distros are easily supported by just simply identifying them under each of the 3 base distros respectively so if there's a distro that it doesn't support already, feel free to submit an issue including the output of cat /etc/*-release
to request for it to be added and I will try to find time to get it added on.
Also, I primarily use Pop, Ubuntu, Debian, Fedora, Arch, and Garuda so other distros are a bit less tested. If you notice any issues on the other "supported" distros, please let me know by submitting an issue here.
The native package manager of immutable distros and distros like nixos will most likely never make it to this list since for example, nixos' declarative package management pretty much addresses the same problem but just in a different way and perhaps maybe even better...
Caveat
: Arch Derivatives
add-repo and rm-repo actions for Arch based distros only take bash scripts as arguments and only for pacman (not yay). There are various reasons why. Among them all, perhaps the more important ones are:
app does not handle local packages for Arch based distros as most of the time, users in Arch that deal with local packages are compiling their own packages from source which is sort of out of scope for what app is trying to solve. Unless someone tells me I am wrong, there aren't really pre-compiled packages out there that you can't really get from a combination of pacman, Arch AUR, and Chaotic. If someone tells me that they have a use case that says otherwise, it's most likely involving only 1 or 2 packages or some very specific dev project related subset which again, makes this feature fall under "not worth the time to automate" and "out of scope".
Caveat
: Snap
As far as I know, there's no way to easily add third party repos especially since the whole backend is closed source.
Caveat
: AppImage
If your AppImage app updates itself, you may need to manually edit your .desktop file in $HOME/.local/share/applications/
to point to the correct AppImage file in $HOME/.config/app/packages/local/appimage/
since the new file has a new version on the file name.
go/pip/cargo
:
The go, pip, and cargo support is not meant to be a replacement for development purposes but rather for users that use software that are distributed via go, pip, and cargo.
If this repo was useful to you, feel free to buy us some coffee! :)
whereis
must be installed on nixos for this to work.app -m app update
app -m app update
app -m app update
so that it doesn't update when not needed Changed bash scripts headers to allow for ./ execution on FreeBSD
Added Update script for easy installation with less dependencies
Implemented self-update app -m app update
Launched https://hkdb.github.io/app
Fixed brew and flatpak restore - Thanks to @RichardFevrier
Fixed default enabled values to avoid errors on first launch - Thanks to @RichardFevrier
Output history in alphabetical order by default and allow users to use the -raw flag to output history in the order packages were installed
Fixed -y behavior for flatpak
Development Feature: Added pre-commit linter - Thanks to @RicherFevrier
Development Feature: Auto-compile binaries on release in preparation for better distribution/installation solution - Thanks to @RicherFevrier
app help
to reflect go, pip, and cargoapp settings
If you are upgrading rather than installing for the first time on Linux, after upgrading to this version, execute the following command:
echo "BREW = n" >> ~/.config/app/settings.conf
THIS IS STILL ALPHA SOFTWARE
This repo is sponsored by 3DF OSI and is maintained by volunteers. 3DF Limited, 3DF OSI, and its volunteers in no way make any guarantees. Please use at your own risk!
To Learn more, please visit: