Installing Opera Browser

Could anyone help me out with installing opera

Opera browser installation

  1. Open a terminal

  2. Run the following command to obtain root privileges

    sudo -s
    

    and type your admin password.

  3. Run the following commands, one by one:

    swupd bundle-add package-utils
    rpm --import https://rpm.opera.com/rpmrepo.key
    mkdir -p /etc/yum.repos.d
    tee /etc/yum.repos.d/opera.repo <<RPMREPO
    
  4. A > symbol should appear. Continue by typing (or pasting) this strings, one by one:

    [opera]
    name=Opera packages
    type=rpm-md
    baseurl=https://rpm.opera.com/rpm
    gpgcheck=1
    gpgkey=https://rpm.opera.com/rpmrepo.key
    enabled=1
    RPMREPO
    
  5. You should be back to standard terminal. Run:

    dnf download opera-stable 
    rpm -U --nodeps opera*x64*.rpm
    
  6. You can now 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 opera*.rpm
    swupd bundle-remove package-utils
    
  7. The following command will fix the font loading:

    f=/etc/environment; s='export FONTCONFIG_PATH=/usr/share/defaults/fonts'; touch $f; if ! grep -q "$s" $f ; then echo $s >> $f; fi
    
  8. Reboot your system.

Done! :smile:

5 Likes

The above suggestion is great. It helped me a lot when I installed ClearLinux for the first time but I’ve found another way.
If you don’t want to use dnf/yum since they install the packages under /usr/lib64 which is not recommended and the OS updates may brake your browser you can:

  1. Create folder that will hold the custom libs. Check Ld not finding library installed in /usr/local/lib - #5 by ahkok
  2. Download opera rpm and extract it somewhere under your home dir
  3. Create symlinks of opera’s share files to /usr/local/share to make the icon visible.
    I’ve created a simple script that downloads the latest opera version + it enables h.264 codec
    The script is not perfect but it does the job :slight_smile:

https://raw.githubusercontent.com/takov/bash-scripts/master/clearLinux/opera.sh

HTH,
Takov

How would you uninstall Opera when installed like this?

extract the rpm, see what’s installed, and then remove them

do not like opera browserso much. I prefer google chrome

After Opera came Vivaldi.