From 37f45fcce9b7bbe5293a950df9d22f9107caab88 Mon Sep 17 00:00:00 2001 From: Alexander Navarro Date: Thu, 8 Jun 2023 12:42:20 -0400 Subject: [PATCH] update dependency managment --- config/zsh/functions/fedora.zsh | 9 +++++++++ exports/dnf.txt | 1 + 2 files changed, 10 insertions(+) diff --git a/config/zsh/functions/fedora.zsh b/config/zsh/functions/fedora.zsh index 7edb325..bad34af 100644 --- a/config/zsh/functions/fedora.zsh +++ b/config/zsh/functions/fedora.zsh @@ -5,10 +5,19 @@ dnf-save-install() { sudo dnf install -y $(cat "$DOTS/exports/dnf.txt") } +dnf-load-export() { + while read -r line; do + sudo dnf copr enable -y "$line" + done <"$DOTS/exports/copr.txt" + + sudo dnf install -y $(cat "$DOTS/exports/dnf.txt") +} + upgrade() { sudo dnf upgrade --refresh -y } +# where did I get this? mayor-upgrade() { if [[ $(dnf check-update -q) ]]; then echo "There are updates pending, update and reboot? [y/N]" diff --git a/exports/dnf.txt b/exports/dnf.txt index 99b9174..b7f15ff 100644 --- a/exports/dnf.txt +++ b/exports/dnf.txt @@ -1,3 +1,4 @@ +bat dnf-plugin-system-upgrade duf exa