Simpel bash script alternative to aptitude or synaptic. Inspired by fzf-apt.
- Supports both fzf and skim
- Preview package info before installing
- Query what packages are already installed and what is known about them (for example: Where do all the files end up)
- Install / Uninstall directly from your own script
- Convenience functions for everyday package mangager related tasks
Depends on fzf or skim, bash, awk and coreutils.
This script will request root if required or sudo if installed on your system.
pkgb [-c] [-s] [-f] [-h] (add del export list purge upgrade checkout) [QUERY]
Where QUERY
is a optional search string that will be given to the fuzzy searcher at the start.
If the action you choose doesn't need fzf this parameter will be ignored
-c
: Will run autoremove after action-s
: Safe execute. You have to confirm apt actions in a more traditional way.-f
: Fast execute. Won't runapt-get update
before action-h
: Show help
NOTE: Depending on your package manager the more advanced features are not available
add
: Allows installing one or more packages from a list of available packages.del
: Allows removing one or more packages from a list of installed packages.purge
: Allows purging (completely remove) one or more packages from a list of installed packages.list
: Will show you a list of installed packages on this system with additional information in the preview windowexport
: Writes a list of all installed packages on this system to stdout.upgrade
: Find, download and apply all availiable upgrades to your system packagescheckout
: Will show you a list of installed packages. After selecting a packgage you can checkout a specific path the package created on your system.
A few examples on how to use this script.
pkb add
pkb -s add zsh
pkb -cs purge snapd
pkb list python3-
pkb -c upgrade