Skip to content
/ xinst Public

Package install menu based on fzf supporting ~many~ package managers

License

Notifications You must be signed in to change notification settings

cultab/xinst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)