cultab cc350875a7 | ||
---|---|---|
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
template | ||
xinst | ||
xinst_display | ||
xinst_parse_apt | ||
xinst_parse_xbps |
README.md
xinst
Provides an fzf menu to easily search for and install/remove packages, also update. It does so through a multicall script (similarly to the busybox binary).
Usage
To search for a package to install, run xf, choose one (or more) and press Enter. To search for a package to remove, run xr, choose one (or more) and press Enter. To update run xu (all packages).
See Configuring on how to change the names of these functions.
Installing
Simply running # make install
will install xinst into /usr/local/bin. Installation prefix can be tweaked by passing a $PREFIX
variable to make install
.
Configuring
By default the 3 functions are named xf (xinst find), xu (xinst update) and xr (xinst remove), to install, remove and update respectively. They can be changed by editing the makefile's 3 variables, $IN, $UP and $REM.
Note: it's not a good idea to change those variables before first uninstalling xinst, because the uninstall rule uses them.
First make uninstall
and only then change them.
TODO
Maybe support multiple package managers at the same time?
xbps <pkg> <version>
flatpak <pkg> <version>
other_pkg_mngr <pkg> <version>
How?
sort by first word switch on first word of selection sort into queues install with one call to each pkg manager
maybe it's time to move to a more robust language?
Better preview
- xbps
- apt
More package managers
- xbps
- apk
- flatpak (might need a cache?)
- pacman (arch)
- apk (alpine)
- ???? (openSUSE)