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.
@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
When you install via the downloaded .deb binaries/installer and not the opera repository for Opera, then it was installed with
dpkg, and not
sudo dpkg --remove opera or
sudo dpkg -r opera to remove it.
dpkg -l | grep opera
to find out proper package name. For me opera-stable then
sudo apt-get remove opera-stable