Skip to content

Commit

Permalink
Merge pull request #143 from rpmfusion-infra/fix/brave
Browse files Browse the repository at this point in the history
fix DNF5 issue with Brave installation
  • Loading branch information
MalteKiefer authored Dec 6, 2024
2 parents defcfb7 + afbc9f2 commit e07a877
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 8 additions & 10 deletions plugins/brave.plugin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
# Instructions adopted from
# https://brave-browser.readthedocs.io/en/latest/installing-brave.html#linux

# old brave version
if [ -f /etc/yum.repos.d/s3-us-west-2.amazonaws.com_brave-rpm-release_x86_64.repo ] ; then
rm -f s3-us-west-2.amazonaws.com_brave-rpm-release_x86_64.repo
fi

rpm -q --quiet brave && dnf -y remove brave

# new brave-browser version

dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
cat > /etc/yum.repos.d/brave-browser.repo << "EOF"
[brave-browser]
name=Brave Browser
enabled=1
gpgcheck=1
gpgkey=https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
baseurl=https://brave-browser-rpm-release.s3.brave.com/$basearch
EOF

rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc

Expand Down
4 changes: 4 additions & 0 deletions plugins/brave.plugin/remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ if [ -f /etc/yum.repos.d/brave-browser-rpm-release.s3.brave.com_x86_64_.repo ] ;
rm -f /etc/yum.repos.d/brave-browser-rpm-release.s3.brave.com_x86_64_.repo
fi

if [ -f /etc/yum.repos.d/brave-browser.repo ] ; then
rm -f /etc/yum.repos.d/brave-browser.repo
fi

dnf -y remove brave brave-browser

0 comments on commit e07a877

Please sign in to comment.