-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DNF package manager #10
Comments
Hey @CleanMachine1! Do you use Fedora? I have no experience with it, and so I have no idea how to use |
I started yesterday since I had an ssd to fill, from what I can tell, sudo dnf upgrade == sudo apt update && sudo apt full-upgrade |
Hey, can |
Alright, I've added dnf in the latest commits, can you test it? Just like this: cd /tmp
wget -q https://github.com/Crilum/update/raw/main/update
./update dnf maybe try updating some packages too, like this:
If you could post the outputs, that would be amazing! |
I don't particuallary understand these lines |
./update: line 166: upd_upd_script: command not found Welcome to Crilum's Update Script! I feared that it would try to mess about with Pi-Apps so I removed everything but what was needed. |
Ok, thanks.
If you have Pi-Apps installed,
pkgs="$*"
if [[ "$pkgs" =~ "--no-grep-args" ]]; then
pkgs="$(echo $pkgs | sed -e 's/--no-grep-args//g' -e 's/--all//g' -e 's/-a//g' -e 's/--apt//g' -e 's/-A//g' -e 's/all//g' -e 's/--npm//g' -e 's/-n//g' -e 's/snaps//g' -e 's/-s//g' -e 's/--snaps//g' -e 's/-f//g' -e 's/--flatpak//g' -e 's/-d//g' -e 's/--dnf//g')"
else
pkgs="$(echo $pkgs | sed -e 's/--no-grep-args//g' -e 's/--all//g' -e 's/-a//g' -e 's/--apt//g' -e 's/apt//g' -e 's/-A//g' -e 's/all//g' -e 's/npm//g' -e 's/--npm//g' -e 's/-n//g' -e 's/snaps//g' -e 's/-s//g' -e 's/--snaps//g' -e 's/flatpak//g' -e 's/-f//g' -e 's/--flatpak//g' -e 's/dnf//g' -e 's/-d//g' -e 's/--dnf//g')"
fi This code removes arguments from the package list ( @CleanMachine1 Thanks for testing for me! I'll make a release. |
Fedora Linux uses DNF
See https://docs.fedoraproject.org/en-US/quick-docs/dnf/ for some docs
however to update is
sudo dnf upgrade
The text was updated successfully, but these errors were encountered: