Opera is a freeware, cross-platform web browser developed by Opera Software and operates as a Chromium-based browser. Opera offers a clean, modern web browser that is an alternative to the other major players in the Browser race. Its famous Opera Turbo mode and its renowned battery saving mode are the best amongst all known web browsers by quite a margin, along with a built-in VPN and much more.
In the following tutorial, you will learn how to install Opera Browser on Linux Mint 20.
Table of Contents
- 1 Prerequisites
- 2 Install Required Packages
- 3 Import & Install GPG Key and Repository
- 4 Install Opera Browser
- 5 How to Launch Opera Browser
- 6 How to Update Opera Browser
- 7 How to Remove (Uninstall) Opera Browser
- 8 Comments and Conclusion
- Recommended OS: Linux Mint 20 or higher.
- User account: A user account with sudo or root access.
Update Operating System
Update your Linux Mint operating system to make sure all existing packages are up to date:
sudo apt update && sudo apt upgrade -y
The tutorial will be using the sudo command and assuming you have sudo status. To verify sudo status on your account:
Example output showing sudo status:
[[email protected] ~]$ sudo whoami root
If you have not set up a sudo user account and would like to, visit our tutorial on How to Add a User to Sudoers on Linux Mint.
To use the root account, use the following command with the root password to log in.
Install Required Packages
To successfully install Opera, you will need to install the following packages; run this command if you are unsure; it will not harm your system.
sudo apt install apt-transport-https ca-certificates curl software-properties-common wget
These are pretty generic dependencies that may be already installed. Run the command regardless if unsure, as many other installations will require these on your system.
Import & Install GPG Key and Repository
For Linux Mint-based systems, the three repository branches currently need to be imported individually on your system. Once done, they are automatically added to your repolist, so you will not need to re-download these to update Brave in the future.
First, import the GPG that is required to check the authenticity of the repository downloads. Without this, your installation of the browser will fail.
wget -qO- https://deb.opera.com/archive.key | sudo apt-key add -
Example output if successful:
To import Opera Browser Stable Repository & GPG Key (Recommended):
sudo add-apt-repository "deb [arch=i386,amd64] https://deb.opera.com/opera-stable/ stable non-free"
Optional. Import Beta or Developer Builds
To import Opera Browser Beta Repository & GPG Key:
sudo add-apt-repository "deb [arch=i386,amd64] https://deb.opera.com/opera-beta/ stable non-free"
To import Opera Browser Developer Repository & GPG Key:
sudo add-apt-repository "deb [arch=i386,amd64] https://deb.opera.com/opera-developer/ stable non-free"
Install Opera Browser
Now that you have imported the repository, you can now be installed Opera using the following.
First, update your repository list to reflect the new repository changes:
sudo apt update
Now install the software with the following command:
sudo apt install opera-stable
Type “Y”, then press the “ENTER KEY” to proceed with the install.
Note, you will see when installing Opera Browser to configure to allow for newer version upgrades.
Select <Ok> to proceed to the next screen, which you will get an option to select <Yes> or <No>.
Select “YES”, then press the “ENTER KEY” to finish the installation.
Once installed, confirm the version of Opera Browser installed. This will also verify the installation was successful.
Optional. Install Opera Browser Beta or Developer build
Alternatively, you can install Brave Beta or Developer builds if you have downloaded the repositories. These two versions are not recommended daily, especially not on a main desktop or production server. However, for those who want to live on the edge, you can install the alternative versions.
To install Opera Browser Beta:
sudo apt install opera-beta -y
To install Opera Browser Developer:
sudo apt install opera-developer -y
Note, these do not replace your stable version, and they are installed separately.
Next, verify the installation of beta or unstable, use the following command.
To verify Opera Browser Beta:
To verify Opera Browser Developer:
How to Launch Opera Browser
With the installation complete, you can run Opera in a few different ways.
First, while you are in your terminal, you can use the following command:
Alternatively, run the opera & command in the background to free up the terminal:
However, this isn’t practical, and you would use the following path on your desktop to open with the path: Taskbar > Internet > Opera. If you cannot find it, use the search function in the Show Applications menu if you have many applications installed.
Now open Opera Browser, you will see the landing page. Looks nice?
Congratulations, you have installed Opera Browser on Linux Mint.
How to Update Opera Browser
To update, run the APT update command in your terminal as you would check your entire system for any updates.
sudo apt update
If one is available, use the upgrade option:
sudo apt upgrade
Alternatively, you can upgrade the Opera Browser package if an update is available.
Example for stable:
sudo apt upgrade opera-stable
Add “-beta” or “-developer” at the end if you installed other Browser versions.
How to Remove (Uninstall) Opera Browser
To remove Opera Browser, execute the following terminal command:
Example removing Opera stable branch:
sudo apt autoremove opera-stable --purge
Type “Y”, then press the “ENTER KEY” to proceed with the uninstall.
Note, unused dependencies will also be removed.
Next, you will need to remove the repositories from your system. This time you are adding the “r” flag, which instructs to remove the entry. This command is the same as adding the repository as you did initially.
To remove the stable repository:
sudo add-apt-repository -r "deb [arch=i386,amd64] https://deb.opera.com/opera-stable/ stable non-free"
To remove the beta repository:
sudo add-apt-repository -r "deb [arch=i386,amd64] https://deb.opera.com/opera-beta/ stable non-free"
To remove the developer repository:
sudo add-apt-repository -r "deb [arch=i386,amd64] https://deb.opera.com/opera-developer/ stable non-free"
Once the repositories are done, you can remove the GPG key that was added to your key list to go even further.
This can be done first by listing the keys on your system.
sudo apt-key list
To find the key for Opera Browser from the above list, look at the numbers and letters in a long sequence. On the screen, this was “9FBD E02F 55F2 54D7 0082 1CCC DD3C 368A 8DE1 B7A0″. To remove a GPG key from your system, note the last 8 characters of the key, then run the following command to delete the key.
sudo apt-key del key-ID
sudo apt-key del 8DE1B7A0
Note, make sure that there are no spaces between the codes numbers and letters.
Example output if successful:
As you may have noticed, you may have multiple GPG keys. Use the same process to delete the keys. And that is it, and you have entirely removed Opera Browser from your Linux Mint system.
Comments and Conclusion
In the tutorial, you have learned how to import the Opera repository into the apt source list and install the web browser by choosing either stable, beta, or developers branches. Overall, Opera uses the Chromium page-rendering engine, so you’ll rarely run into site incompatibilities. Performance is fast, perhaps not the feast in the field. Still, it keeps its own and has unique features that make this an attractive alternative for many mainstream Linux users who want something different besides Firefox that comes standard on nearly all Linux machines.