remove unnecessary packagers (#614)

* remove rpm

* remove yum

* remove xbps

* remove packagers from common-script

---------

Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
Nyx 2024-09-22 13:33:53 -04:00 committed by GitHub
parent 7f70242bfb
commit aaa91da918
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 24 deletions

View File

@ -104,9 +104,6 @@ Signed-By: /usr/share/keyrings/librewolf.gpg" | "$ESCALATION_TOOL" tee /etc/apt/
curl -fsSL https://rpm.librewolf.net/librewolf-repo.repo | pkexec tee /etc/yum.repos.d/librewolf.repo > /dev/null
"$ESCALATION_TOOL" "$PACKAGER" install -y librewolf
;;
rpm-ostree)
rpm-ostree install -y librewolf
;;
zypper)
"$ESCALATION_TOOL" rpm --import https://rpm.librewolf.net/pubkey.gpg
"$ESCALATION_TOOL" zypper ar -ef https://rpm.librewolf.net librewolf

View File

@ -34,12 +34,6 @@ setup_flatpak() {
zypper)
"$ESCALATION_TOOL" "$PACKAGER" install -y flatpak
;;
yum)
"$ESCALATION_TOOL" "$PACKAGER" install -y flatpak
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" install -S flatpak
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
exit 1

View File

@ -126,7 +126,7 @@ checkDistro() {
checkEnv() {
checkCommandRequirements 'curl groups sudo'
checkPackageManager 'nala apt-get dnf pacman zypper yum xbps-install nix-env'
checkPackageManager 'nala apt-get dnf pacman zypper'
checkCurrentDirectoryWritable
checkSuperUser
checkDistro

View File

@ -23,7 +23,7 @@ choose_installation() {
install_docker() {
printf "%b\n" "${YELLOW}Installing Docker...${RC}"
case "$PACKAGER" in
apt-get|nala|yum)
apt-get|nala)
curl -fsSL https://get.docker.com | sh
;;
zypper)
@ -46,7 +46,7 @@ install_docker() {
install_docker_compose() {
printf "%b\n" "${YELLOW}Installing Docker Compose...${RC}"
case "$PACKAGER" in
apt-get|nala|yum)
apt-get|nala)
"$ESCALATION_TOOL" "$PACKAGER" install -y docker-compose-plugin
;;
zypper)

View File

@ -48,13 +48,6 @@ fastUpdate() {
"$ESCALATION_TOOL" "$PACKAGER" ref
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive dup
;;
yum)
"$ESCALATION_TOOL" "$PACKAGER" update -y
"$ESCALATION_TOOL" "$PACKAGER" upgrade -y
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -Syu-
;;
*)
printf "%b\n" "${RED}Unsupported package manager: "$PACKAGER"${RC}"
exit 1
@ -65,11 +58,11 @@ fastUpdate() {
updateSystem() {
printf "%b\n" "${GREEN}Updating system${RC}"
case "$PACKAGER" in
nala|apt-get)
apt-get|nala)
"$ESCALATION_TOOL" "$PACKAGER" update -y
"$ESCALATION_TOOL" "$PACKAGER" upgrade -y
;;
yum|dnf)
dnf)
"$ESCALATION_TOOL" "$PACKAGER" update -y
"$ESCALATION_TOOL" "$PACKAGER" upgrade -y
;;
@ -81,9 +74,6 @@ updateSystem() {
"$ESCALATION_TOOL" "$PACKAGER" ref
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive dup
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -Syu
;;
*)
printf "%b\n" "${RED}Unsupported package manager: "$PACKAGER"${RC}"
exit 1