Using rpak
rpak wraps flatpak. We recommend
aliasing flatpak to it, so you keep typing the commands you know:
- Parallel downloads:
installandupdatefetch app installers several at a time instead of one after another. - Cleaning up: frees the installer copies Flatpak
keeps after every
install or update;
rpak cleanfrees older ones and other leftovers. - Reporting problems:
rpak doctorcollects what a bug report needs. - Fully compatible: every other flatpak command and option is passed through unchanged.
Installing
curl -Lo ~/.local/bin/rpak "https://github.com/flatpark/rpak/releases/latest/download/rpak-linux-$(uname -m)"
chmod +x ~/.local/bin/rpak
Or with mise: mise use -g github:flatpark/rpak.
Alias and completion
For zsh, add this to ~/.zshrc after compinit:
if (( $+commands[rpak] )); then
alias flatpak=rpak
() {
local dir=${XDG_CACHE_HOME:-$HOME/.cache}/zsh
[[ -d $dir ]] || mkdir -p $dir
[[ $dir/_rpak -nt $commands[rpak] ]] || rpak completion zsh >| $dir/_rpak
fpath=($dir $fpath)
autoload -Uz _rpak && compdef _rpak rpak
}
fi
For bash: alias flatpak=rpak and source <(rpak completion bash) in
~/.bashrc. For fish: the same alias and rpak completion fish | source in
config.fish.
Software centres and automatic updates still call flatpak directly; run
rpak clean now and then to free what they leave.
When something goes wrong
rpak doctor <app-id>
prints your distribution, desktop, graphics cards, flatpak setup, overrides and whether the app’s downloads can be reached. It only collects; what the output means is for whoever reads your report. Paste the whole output when you report a problem. It changes nothing, and leaves out home paths, your user name and the names of files you opened. Without an app id it covers only your setup; with several, each app.