How can I install the Opera browser from the terminal?

Since this .deb bug is causing a lot of issues, I must resort to install the Opera browser using the terminal. Which is just fine, but I also need to add it to the repository for automatic updates.

Since I am no expert at all, I do not know how to perform the full installation of the browser. How do I go about it?

Thanks!

P.S. Please do not mark this as duplicate, because the other posts dont details how to go about installing Opera with adding it to the repository too for updates. Cheers.


Solution 1:

To install opera via PPA on Ubuntu, run these commands

Setup key with:

wget -O - http://deb.opera.com/archive.key | sudo apt-key add -

Setup repository with:

sudo sh -c 'echo "deb http://deb.opera.com/opera-stable/ stable non-free" >> /etc/apt/sources.list.d/opera.list' 

Setup package with:

sudo apt-get update 
sudo apt-get install opera

Source

Alternatively, you can install the .deb via a terminal with

sudo dpkg -i path/to/your/deb

It already contains the PPA, if anyone else reading this is still facing the .deb issue with gnome-software, please report it here, it is supposed to be fixed.