branch: externals/system-packages
commit 41933fbfdfdc6323d8d240f623a4cb167f6b6f6f
Author: Laurence Rochfort <[email protected]>
Commit: Alex Branham <[email protected]>
Add support for yum package management
Closes #29
---
system-packages.el | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/system-packages.el b/system-packages.el
index 0b2e85f..239f4b5 100644
--- a/system-packages.el
+++ b/system-packages.el
@@ -241,6 +241,25 @@
(list-installed-packages-all . nil)
(list-dependencies-of . "rpm -qR")
(noconfirm . nil)))
+ ;; RedHat derivatives
+ (yum .
+ ((default-sudo . t)
+ (install . "yum install")
+ (search . "yum search")
+ (uninstall . "yum remove")
+ (update . "yum update")
+ (clean-cache . "yum clean expire-cache")
+ (log . "cat /var/log/yum.log")
+ (get-info . "yum info")
+ (get-info-remote . "repoquery --plugins -i")
+ (list-files-provided-by . "rpm -ql")
+ (verify-all-packages)
+ (verify-all-dependencies)
+ (remove-orphaned . "yum autoremove")
+ (list-installed-packages . "yum list installed")
+ (list-installed-packages-all . "yum list installed")
+ (list-dependencies-of . "yum deplist")
+ (noconfirm . "-y")))
;; Void
;; xbps is the name of the package manager, but that doesn't appear as an
;; executable, so let's just call it xbps-install: