jabranham / system-packages

Moved to gitlab
https://gitlab.com/jabranham/system-packages
GNU General Public License v3.0
39 stars 12 forks source link
emacs

+TITLE: System Packages

+AUTHOR: J. Alexander Branham

+LANGUAGE: en

This is a collection of functions to make handling installed system packages more convenient through emacs.

+BEGIN_SRC emacs-lisp

(add-to-list 'system-packages-supported-package-managers '(pacaur . ((default-sudo . nil) (install . "pacaur -S") (search . "pacaur -Ss") (uninstall . "pacaur -Rs") (update . "pacaur -Syu") (clean-cache . "pacaur -Sc") (log . "cat /var/log/pacman.log") (get-info . "pacaur -Qi") (get-info-remote . "pacaur -Si") (list-files-provided-by . "pacaur -Ql") (verify-all-packages . "pacaur -Qkk") (verify-all-dependencies . "pacaur -Dk") (remove-orphaned . "pacaur -Rns $(pacman -Qtdq)") (list-installed-packages . "pacaur -Qe") (list-installed-packages-all . "pacaur -Q") (list-dependencies-of . "pacaur -Qi") (noconfirm . "--noconfirm"))))

+END_SRC

You may then need to adjust =system-packages-package-manager= and =system-packages-use-sudo= accordingly:

+BEGIN_SRC emacs-lisp

(setq system-packages-use-sudo t) (setq system-packages-package-manager 'pacaur)

+END_SRC