Brave browser installation
-
Open a terminal
-
Run the following command to obtain root privileges
sudo -s
and type your admin password.
-
Run the following commands, one by one:
swupd bundle-add package-utils dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/ rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc dnf download brave-keyring brave-browser rpm2cpio brave-keyring*.rpm | ( cd /; cpio -idv) rpm2cpio brave-browser*.rpm | ( cd /; cpio -idv)
-
Now you can delete the .rpm packages and, if you don’t need it, the
package-utils
bundle. To do this run the following commands, one by one:rm -f brave-*.rpm swupd bundle-remove package-utils
-
Now we can fix the missing menu icon (thanks to @mattyjones):
sed -i 's/Icon=brave-browser/Icon=brave/g' /usr/share/applications/brave-browser.desktop
-
And the following command will fix the font loading (thanks to @TomL):
f=/etc/environment; s='export FONTCONFIG_PATH=/usr/share/defaults/fonts'; touch $f; if ! grep -q "$s" $f; then echo $s >> $f; fi
-
Reboot your system.
Done!
Uninstalling Brave browser
-
Open a terminal
-
Run the following command to obtain root privileges
sudo -s
and type your admin password.
-
Run the following commands, one by one:
f=brave*; rm -f /etc/cron.daily/$f /usr/bin/$f /usr/share/appdata/$f /usr/share/applications/$f /usr/share/gnome-control-center/default-apps/$f /usr/share/man/man1/$f /etc/pki/rpm-gpg/*brave rm -rf /opt/brave.com
Done!
Google Chrome installation
-
Open a terminal
-
Run the following command to obtain root privileges
sudo -s
and type your admin password.
-
Run the following commands, one by one:
swupd bundle-add package-utils curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm rpm2cpio google-chrome*.rpm | ( cd /; cpio -idv)
-
Now you can delete the .rpm package and, if you don’t need it, the
package-utils
bundle. To do this run the following commands, one by one:rm -f google-chrome*.rpm swupd bundle-remove package-utils
-
And the following command will fix the font loading (thanks to @TomL):
f=/etc/environment; s='export FONTCONFIG_PATH=/usr/share/defaults/fonts'; touch $f; if ! grep -q "$s" $f; then echo $s >> $f; fi
-
Reboot your system.
Done!
Uninstalling Google Chrome
-
Open a terminal
-
Run the following command to obtain root privileges
sudo -s
and type your admin password.
-
Run the following commands, one by one:
f=google-chrome*; rm -f /etc/cron.daily/$f /usr/bin/$f /usr/share/appdata/$f /usr/share/applications/$f /usr/share/gnome-control-center/default-apps/$f /usr/share/man/man1/$f rm -rf /opt/google
Done!