From 455299ffe362fd6f72df7ef654119300792a57eb Mon Sep 17 00:00:00 2001 From: Maddie <32415621+SpyHoodle@users.noreply.github.com> Date: Fri, 3 Feb 2023 17:49:13 +0000 Subject: [PATCH] Fixes for RHEL-based package commands (#25) * fixes for RHEL-based package commands * move nix to the bottom of the list --- src/modules/packages.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/packages.py b/src/modules/packages.py index 47f7ae1..734f014 100644 --- a/src/modules/packages.py +++ b/src/modules/packages.py @@ -2,19 +2,19 @@ from subprocess import check_output commands = [ "pacman -Qq --color never", # Arch Linux - "xbps-query -l", # Void Linux - "kiss l", # KISS Linux "dpkg-query -f '.\n' -W", # Debian, Ubuntu, Mint - "dnf list installed", # Fedora - "zypper search -i", # openSUSE + "dnf list installed | tail -n +2", # Fedora, RHEL "rpm -qa", # RHEL, Fedora Core, CentOS - "yum list installed", # RHEL, Fedora Core, CentOS - "nix-store -qR /run/current-system/sw", # NixOS + "yum list installed | tail -n +2", # RHEL, Fedora Core, CentOS + "xbps-query -l", # Void Linux + "zypper search -i", # openSUSE + "kiss l", # KISS Linux "equery list '*'", # Gentoo "qlist -I", # Gentoo "pkg info -a", # BSDs "pkg_info", # BSDs "apk info", # Alpine + "nix-store -qR /run/current-system/sw", # Nix ]