Install Brave browser on CentOS 7

I've been trying to install the Brave browser on CentOS 7 for some time now.

The problem was that you had to use an option that is not considered safe to make it work and I opted not to use it that way.

Today I went back to check the progress made and if a new option was available to get it installed/running with CentOS 7 (release 7.7.1908).

The good news is yes but,  you have to use a specific version.

If you are using CentOS 8 the instructions here might work for you, if you are working with CentOS 7 don't follow them because as stated by "fmarier" on this link:

< Given that CentOS 8 is now out and that we do not currently have the resources to do the work necessary to fix the glibc and the keysigning issues specific to CentOS/RHEL 7, we have decided not to support that version at this time and to instead allocate our time to the Linux distros which are currently working. >

So, how do we install Brave?!  Here's another link with a post from "jseidl":

"We’ve identified that the latest release that installs cleanly on CentOS/RHEL 7 is v0.62.51.
You can download the RPM here: https://github.com/brave/brave-browser/releases/tag/v0.62.51 60
You will need to enable user namespaces:
echo 10000 > /proc/sys/user/max_user_namespaces "


I downloaded the rpm package and install it using rpm:

# rpm -ivh brave-browser-0.62.51-1.x86_64.rpm
error: Failed dependencies:
    /usr/bin/lsb_release is needed by brave-browser-0.62.51-1.x86_64
    liberation-fonts is needed by brave-browser-0.62.51-1.x86_64
I installed the "failed dependencies" (consider that for your system you might need to install other packages to satisfy dependencies use "yum provides" if needed):

# yum install redhat-lsb-core
Loaded plugins: fastestmirror, langpacks, remove-with-leaves
Loading mirror speeds from cached hostfile
 * base: mirror.den1.denvercolo.net
 * epel: mirror.dal.nexril.net
 * epel-debuginfo: mirror.dal.nexril.net
 * extras: mirror.fileplanet.com
 * nux-dextop: mirror.li.nux.ro
 * updates: mirror.netdepot.com
Resolving Dependencies
--> Running transaction check
---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be installed
--> Processing Dependency: redhat-lsb-submod-security(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: spax for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
--> Running transaction check
---> Package redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 will be installed
---> Package spax.x86_64 0:1.5.2-13.el7 will be installed
--> Finished Dependency Resolution
--> Finding unneeded leftover dependencies
Found and removing 0 unneeded dependencies

Dependencies Resolved

====================================================
 Package                                  Arch              Version               Repository     Size
====================================================
Installing:
 redhat-lsb-core                      x86_64      4.1-27.el7.centos.1    base            38 k
Installing for dependencies:
 redhat-lsb-submod-security  x86_64      4.1-27.el7.centos.1     base           15 k
 spax                                       x86_64      1.5.2-13.el7                base            260 k

Transaction Summary
====================================================
Install  1 Package (+2 Dependent packages)

Total download size: 312 k
Installed size: 635 k
Is this ok [y/d/N]: y
Downloading packages:
(1/3): redhat-lsb-core-4.1-27.el7.centos.1.x86_64.rpm                        |  38 kB  00:00:00   
(2/3): redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64.rpm     |  15 kB  00:00:00   
(3/3): spax-1.5.2-13.el7.x86_64.rpm                                                     | 260 kB  00:00:00   
-------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                       418 kB/s | 312 kB  00:00:00   
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : spax-1.5.2-13.el7.x86_64                                                        1/3
  Installing : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64        2/3
  Installing : redhat-lsb-core-4.1-27.el7.centos.1.x86_64                           3/3
  Verifying  : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64        1/3
  Verifying  : spax-1.5.2-13.el7.x86_64                                                        2/3
  Verifying  : redhat-lsb-core-4.1-27.el7.centos.1.x86_64                           3/3

Installed:
redhat-lsb-core.x86_640:4.1-27.el7.centos.1

Dependency Installed:
  redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1   spax.x86_64 0:1.5.2-13.el7

Complete!


# yum install liberation-fonts
Loaded plugins: fastestmirror, langpacks, remove-with-leaves
Loading mirror speeds from cached hostfile
 * base: mirror.den1.denvercolo.net
 * epel: mirror.dal.nexril.net
 * epel-debuginfo: mirror.dal.nexril.net
 * extras: mirror.fileplanet.com
 * nux-dextop: mirror.li.nux.ro
 * updates: mirror.netdepot.com
Resolving Dependencies
--> Running transaction check
---> Package liberation-fonts.noarch 1:1.07.2-16.el7 will be installed
--> Processing Dependency: liberation-narrow-fonts = 1:1.07.2-16.el7 for package: 1:liberation-fonts-1.07.2-16.el7.noarch
--> Running transaction check
---> Package liberation-narrow-fonts.noarch 1:1.07.2-16.el7 will be installed
--> Finished Dependency Resolution
--> Finding unneeded leftover dependencies
Found and removing 0 unneeded dependencies

Dependencies Resolved

========================================================
 Package                                  Arch          Version                     Repository                  Size
========================================================
Installing:
 liberation-fonts                     noarch          1:1.07.2-16.el7             base                       13 k
Installing for dependencies:
 liberation-narrow-fonts      noarch           1:1.07.2-16.el7              base                       202 k

Transaction Summary
========================================================
Install  1 Package (+1 Dependent package)

Total download size: 215 k
Installed size: 474 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): liberation-fonts-1.07.2-16.el7.noarch.rpm                                              |  13 kB  00:00:00
(2/2): liberation-narrow-fonts-1.07.2-16.el7.noarch.rpm                                 | 202 kB  00:00:00
-----------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                   331 kB/s | 215 kB  00:00:00    
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
 Installing : 1:liberation-narrow-fonts-1.07.2-16.el7.noarch  1/2
Installing : 1:liberation-fonts-1.07.2-16.el7.noarch                2/2
Verifying  : 1:liberation-narrow-fonts-1.07.2-16.el7.noarch   1/2
Verifying  : 1:liberation-fonts-1.07.2-16.el7.noarch                2/2

Installed:
  liberation-fonts.noarch 1:1.07.2-16.el7

Dependency Installed:
  liberation-narrow-fonts.noarch 1:1.07.2-16.el7

Complete!
 

# rpm -ivh brave-browser-0.62.51-1.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:brave-browser-0.62.51-1          ################################# [100%]
Redirecting to /bin/systemctl start atd.service

Remember this step!:

echo 10000 > /proc/sys/user/max_user_namespaces


And.... voilà!   




TL;DR:


2.- Satisfy the dependencies for your system, for me were two packages (use "yum provides" if needed):

yum install redhat-lsb-core liberation-fonts -y

3.- Install the rpm
rpm -ivh brave-browser-0.62.51-1.x86_64.rpm

4.- You need to enable user namespaces:
echo 10000 > /proc/sys/user/max_user_namespaces


5.- You should have brave running.


Now, that is an older version suggested for people using CentOS 7, you can try with newer versions and check/confirm if they work for you. At least that's what I plan to do.

No hay comentarios.:

// Cookie consent