I have downloaded opera from the website (deb package) and installed it. Now I want to remove it but I don't know how. I tried sudo apt-get remove opera but it didn't work.

4 Answers 4


@Thomas W.'s answer didn't work for me on Ubuntu 14.04. I had to use:

sudo dpkg -r opera-stable

And to remove the apt sources file added by Opera:

sudo rm -f /etc/apt/sources.list.d/opera-stable.list
  • What about /etc/apt/sources.list.d/opera-stable.list.save file? Should I remove that also? Isn't there a command that remove all files related to the application, for example sudo apt purge?
    – ibilgen
    Feb 20, 2021 at 11:42

When you install via the downloaded .deb binaries/installer and not the opera repository for Opera, then it was installed with dpkg, and not apt-get.

Try using sudo dpkg --remove opera or sudo dpkg -r opera to remove it.

  • 3
    You're welcome, @user159082! Don't forget to mark this as accepted if it helped!
    – Thomas Ward
    May 16, 2013 at 2:28
  • Or equally use: sudo dpkg -r opera
    – Farahmand
    Oct 7, 2014 at 16:07
sudo apt-get remove --purge opera-stable

Try this, it's gonna work.

  • 2
    duplicate of askubuntu.com/a/1113681
    – karel
    Sep 14, 2020 at 12:01
  • Although this is not the same as that earlier answer, since this also removes conffiles (due to --purge), it's not obvious how the difference is important or why this approach is more likely to help, or otherwise better, than that one. You may want to edit this to clarify that. Sep 14, 2020 at 13:43


dpkg -l | grep opera

to find out proper package name. For me opera-stable then

sudo apt-get remove opera-stable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.