How to Install Opera Browser on Linux Mint 21 LTS

Opera is a freeware, cross-platform web browser developed by Opera Software. 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. Opera has created a sleek and lightweight browsing experience using the Blink layout engine. In addition, Opera has built-in features such as an ad blocker, battery saver, and free VPN. With these features, Opera provides users with an efficient browsing experience that is both fast and private. As more and more people are looking for alternatives to the major browsers, Opera is poised to become a leading player in the browser market.

In the following tutorial, you will learn how to install Opera Browser on Linux Mint 21 LTS series that includes the stable, beta, and development (nightly) branch with steps to install, update and remove the browser using the command line terminal.

Update Linux Mint

Before you begin with the tutorial, it is recommended to start with an upgrade and, if necessary, reboot to make sure all your system packages are up-to-date to avoid any issues.

sudo apt update && sudo apt upgrade -y

Install Required Packages

Next, run the following command to ensure the following dependencies are installed.

sudo apt install dirmngr ca-certificates software-properties-common gnupg gnupg2 apt-transport-https curl -y

These are the most common software packages found on nearly all Linux distributions and are safe.

Import & Install GPG Key & Repository

The installation is straightforward, importing the GPG key and repository straight from Opera.

The fantastic option for importing the APT repository rather than manually installing the .deb file from their website is that you can install alternative versions, such as Beta or Developer, alongside your stable browser.

Import GPG Key

curl -fsSL https://deb.opera.com/archive.key | gpg --dearmor | sudo tee /usr/share/keyrings/opera.gpg > /dev/null

Import Opera Repository

echo deb [arch=amd64 signed-by=/usr/share/keyrings/opera.gpg] https://deb.opera.com/opera-stable/ stable non-free | sudo tee /etc/apt/sources.list.d/opera.list

Install Opera Browser

Install Opera Browser Stable

Now that you have imported the repository, you can now be installed Opera using the following.

See also
VirtualBox 7.0 - How to Install on Linux Mint 21 or 20

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 -y

Note you will see when installing Opera Browser to configure to allow for more recent version upgrades.

Example:

How to Install Opera Browser on Linux Mint 21 LTSPin

Select “NO,” then press the “ENTER KEY” to finish the installation.

If you select “YES,” you will find that updating has multiple conflicts. See the troubleshooting at the end of the tutorial if you enable this to fix the issue.

Please note that you will be prompted to do this for each version stable, beta, and developer, so select <NO> every time you do a separate installation or double up on importing source.list will occur.

Install Opera Browser Beta

sudo apt install opera-beta -y

Note that the beta version is currently behind stable in most cases, so please be careful using it, thinking the beta is ahead of stable automatically. You could have an older client depending on Opera’s release cycle.

For those that want bleeding-edge, install the developer version.

Install Opera Browser Developer

sudo apt install opera-developer -y

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:

opera

However, this is not practical for most desktop users, and you would use the following path on your desktop.

Taskbar > Internet > Opera {version}.

Example:

The first time you launch Opera, you will arrive at the screen where you click “LET’S GO” to customize your browser, such as selecting another theme as dark and other browser features. Each user’s Opera browser may look different compared to what you see in this tutorial.

Example:

Now open Opera Browser, and you will see the landing page. You can further customize it from here or keep the default theme unique compared to most other browsers.

Example final look:

Congratulations, you have installed Opera Browser.

How to Update Opera Browser

Most desktop users rely on automatic updates or auto-update notifications, which can be ok. Still, given that you are learning to install the browser using a terminal, you should update by running 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.

See also
How to Install HandBrake on Linux Mint 21 or 20

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:

Remove Opera Browser Stable

sudo apt autoremove opera-stable --purge

Remove Opera Browser Beta

sudo apt autoremove opera-beta --purge

Remove Opera Browser Nightly

sudo apt autoremove opera-developer --purge

Note unused dependencies will also be removed.

Use the following command to delete the Opera Repository for users who will no longer install or want to install Opera Browser on their system.

sudo rm /etc/apt/sources.list.d/opera.list

Finally, delete the GPG key.

sudo rm /usr/share/keyrings/opera.gpg

Troubleshooting Multiple Sources.list

Please note you can install all three, but you may get issues with the apt update command with conflicts. However, each installation will create a new sources list in your /etc/apt/sources.list.d/ directory.

Just remove the extras and keep the original one. If you accidentally delete them, copy the import directory code in this tutorial.

Example of a quick fix.

sudo rm /etc/apt/sources.list.d/opera*

Then re-add the one repository.

echo deb [arch=amd64 signed-by=/usr/share/keyrings/opera.gpg] https://deb.opera.com/opera-stable/ stable non-free | sudo tee /etc/apt/sources.list.d/opera.list

Remember to run an APT update.

sudo apt update

This should fix the issue now, and you will still receive updates for all three browsers from one source.list instead of three.

Comments and Conclusion

All in all, Opera is a great browser that should be considered by anyone looking for an alternative to the mainstream browsers. It’s fast, lightweight, and comes with some great features. If you haven’t tried it yet, try Opera today!

Leave a Comment

Index
Share to...