This is a collection of functions to make handling installed system packages more convenient through emacs.
System packages is not available on MELPA, so the easiest way to use
it is to git clone it somewhere and add that to your load-path. If
you use use-package, configuration may look something like this:
(use-package system-packages
:load-path "~/path/to/system-packages")The package attempts to guess which package manager you use. If it
guesses wrong (or you’d like to set it manually), you may modify the
variable system-packages-packagemanager.
We also attempt to guess whether or not to use sudo with appropriate
commands (like installing and uninstalling packages). Some package
managers (like homebrew) warn not to use sudo, others (like apt)
need sudo privileges. You may set this manually by configuring
system-packages-usesudo
The package doesn’t presume to set keybindings for you, so you may
set those up yourself or simply call functions with M-x. Here’s a
list of current functions (all start with system-packages)
installuninstallsearchupdateremove-orphanedlist-installed-packages