Skip to content
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

Added dnf5 support #41

Merged
merged 3 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
unsupported := alpine voidlinux/voidlinux-musl ubuntu_16.04 debian_9 linuxmintd/mint18-amd64 fedora_26 opensuse/leap_42.3
supported := ubuntu_18.04 debian_10 linuxmintd/mint19-amd64 fedora_28 opensuse/leap_15 opensuse/tumbleweed rockylinux_9 manjarolinux/base # fedora_27 hangs
supported := ubuntu_18.04 debian_10 linuxmintd/mint19-amd64 fedora_28 fedora_41 opensuse/leap_15 opensuse/tumbleweed rockylinux_9 manjarolinux/base # fedora_27 hangs
distros := $(unsupported) $(supported)

test: $(distros)
Expand Down
9 changes: 5 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ main() {

elif available dnf; then
show $sudo dnf install -y 'dnf-command(config-manager)'
show $sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
show $sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
if dnf --version|grep -q dnf5; then
show $sudo dnf config-manager addrepo --from-repofile=https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
else
show $sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
fi
show $sudo dnf install -y brave-browser

elif available eopkg; then
Expand All @@ -83,11 +86,9 @@ main() {
elif available yum; then
available yum-config-manager || show $sudo yum install yum-utils -y
show $sudo yum-config-manager -y --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
show $sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
show $sudo yum install brave-browser -y

elif available zypper; then
show $sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
show $sudo zypper --non-interactive addrepo --gpgcheck --repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
show $sudo zypper --non-interactive --gpg-auto-import-keys refresh
show $sudo zypper --non-interactive install brave-browser
Expand Down