Ahoy VoidLinux comrades!
This is just quick wrapper for XBPS, flatpak and runit. I think there are already some alternatives and this is probably the simplest wrapper. It provides simple interface inspired by Alpine Linux apk (similar to Debian's aptitude).
There are actually three functionalities:
- package management,
- flatpak management,
- service management.
And I think best feature is ... bash autocompletion!
xb <TAB> #for all actions
xb add abi<TAB> #will complete to abiword
xb son <TAB> #will list only disabled services
xb fadd <TAB> #will list flatpak packages
$ git clone https://github.com/ernierasta/xb && cd xb
$ sudo cp xb /usr/local/bin/
$ sudo cp complete/xb /usr/share/bash-completion/completions/
Optionally you can make aliases, to use x as alias:
$ # command below will add alias to .bash_aliases if exist, otherwise to .bashrc
$ [ -f ~/.bash_aliases ] && echo -e "alias x='sudo xb'\n_completion_loader xb\ncomplete -o bashdefault -o default -o nospace -F _xb x" >> ~/.bash_aliases || echo -e "alias x='sudo xb'\n_completion_loader xb\ncomplete -o bashdefault -o default -o nospace -F _xb x" >> ~/.bashrc
Then open new terminal window.
$ xb add neovim mc
$ xb son sshd
$ xb frepoadd flathub
$ xb fadd blender.blender
For full help run:
$ xb
I find XBPS multi-binary not very convenient. Also enabling services is tedious and error prone. Lets not speak about flatpak interface ... ;-).
- add autoinstall script,
- add flatpak support (probably as separate set of commands, flatpak is slower then xbps),
- fix short flatpak names (for now skype is there as "client", because of: com.skype.Client), test it more.
- maybe add more commands if needed ...