From 698e595aea931569fb5b01d1998e28c2c23a102a Mon Sep 17 00:00:00 2001 From: Tahinli <96421894+Tahinli@users.noreply.github.com> Date: Mon, 5 Dec 2022 19:47:27 +0300 Subject: [PATCH] Update fedoraEasy.sh --- fedoraEasy.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fedoraEasy.sh b/fedoraEasy.sh index 48ce94e..fdd9035 100755 --- a/fedoraEasy.sh +++ b/fedoraEasy.sh @@ -31,6 +31,12 @@ function kernelCheck echo -e '\n-->Kernel Update Selected\n Checking...\n' sudo dnf update -y } +function cleaning + { + echo -e '\n-->Cleaning Selected\n' + sudo dnf autoremove -y + sudo dnf clean all -y + } function installation { echo -e '\n Installation Selected\n Starting...\n' @@ -68,7 +74,7 @@ function restartSelection ;; esac } -echo -e '0) Kernel Uptade Check\n1) Hands Free Complete Setup\n2) Only Fix Config Files\n3) Only Speed Up DNF\n4) Only Activate RPM-Fusion Repos\n5) Only Add Additional Repos\n6) Only Install Programs' +echo -e '0) Kernel Uptade Check\n1) Hands Free Complete Setup\n2) Only Fix Config Files\n3) Only Speed Up DNF\n4) Only Activate RPM-Fusion Repos\n5) Only Add Additional Repos\n6) Only Install Programs\n7) Only Cleaning' read selection case $selection in 0) @@ -80,6 +86,7 @@ case $selection in additionalRepo configFix installation + cleaning ;; 2) configFix @@ -96,9 +103,11 @@ case $selection in 6) installation ;; + 7) + cleaning + ;; *) echo -e ' -# Invalid Selection #-\n QUITING' ;; esac -sudo dnf autoremove -y restartSelection