st1905

How to Install Latest Brave Browser release version in Centos 7 (also works for FreeBSD`s Centos 7 Linuxulator)

Oct 18th, 2020 (edited)
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.59 KB | None | 0 0
  1. How to Install Latest Brave Browser release version in Centos 7 (also works for FreeBSD`s Centos 7 Linuxulator)
  2.  
  3. https://github.com/brave/brave-browser/releases/download/v1.15.74/brave-browser-1.15.74-1.x86_64.rpm (Latest release rpm)
  4.  
  5.  
  6.  
  7. https://github.com/brave/brave-browser/releases/download/v0.62.51/brave-browser-0.62.51-1.x86_64.rpm (Install this one using yum, it will install all dependencies of brave for the future versions)
  8.  
  9. yum install brave-browser-0.62.51-1.x86_64.rpm
  10.  
  11. then remove it using yum remove brave-browser   (since this is an old version and we don`t use it.)
  12.  
  13. install the newer one
  14.  
  15. rpm -ivh brave-browser-1.15.74-1.x86_64.rpm --nodeps
  16.  
  17. install newer glibc
  18.  
  19. wget http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
  20. tar zxvf glibc-2.18.tar.gz
  21. cd glibc-2.18
  22. mkdir build
  23. cd build
  24. ../configure --prefix=/opt/glibc-2.18
  25. make -j4
  26. make install
  27.  
  28. Its very important that you use another prefix then using the default one because we don`t want to overwrite system glibc.
  29.  
  30. install patchelf using yum
  31.  
  32. yum install patchelf
  33.  
  34.  
  35. and patch the binary
  36.  
  37. the latest release version has the brave binary located at /opt/brave.com/brave/brave
  38.  
  39.  
  40.  
  41. if you run it without patching the binary, it will throw an error "/lib64/libc.so.6: version `GLIBC_2.18' not found"
  42.  
  43. This is the very same procedure in centos 7, it does`t matter if you use FreeBSD or not. You better use FreeBSD of course, you should.
  44.  
  45. Lets patch it
  46.  
  47. patchelf --set-interpreter /opt/glibc-2.18/lib/ld-linux-x86-64.so.2 --set-rpath /opt/glibc-2.18/lib:/usr/lib64 /opt/brave.com/brave/brave
  48.  
  49. And now it will work.
  50.  
  51.  
Add Comment
Please, Sign In to add comment