fzf based package install menu supporting many (TODO) package managers
Go to file
cultab cc350875a7 fix: enable word splitting when installing pkgs 2023-08-23 00:59:37 +03:00
.gitignore updated readme, gitignore 2021-04-29 00:29:17 +03:00
LICENSE add LICENSE 2021-04-28 20:02:04 +03:00
Makefile various fixes + bump version to 0.3.0 2023-05-28 17:03:27 +03:00
README.md docs: xi -> xf is now default 2023-08-21 22:16:27 +03:00
template feat: add xbps template 2022-10-17 00:01:56 +03:00
xinst fix: enable word splitting when installing pkgs 2023-08-23 00:59:37 +03:00
xinst_display feat: better preview + apt preview support 2022-10-16 22:40:38 +03:00
xinst_parse_apt various fixes + bump version to 0.3.0 2023-05-28 17:03:27 +03:00
xinst_parse_xbps various fixes + bump version to 0.3.0 2023-05-28 17:03:27 +03:00

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)