LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I delete programs using terminel (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-delete-programs-using-terminel-4175503533/)

Don Graham 04-30-2014 11:42 PM

How do I delete programs using terminel
 
I just got my Ubuntu 14.04 running just the way I want it, when I decided to install Opera browser. I tried 3 different times and failed each time. I need some one to tell me what to type in the terminal to remove any and all files related to Opera.

eklavya 05-01-2014 12:01 AM

Quote:

sudo apt-get --purge remove opera
if that doesn't work:
Quote:

sudo dpkg -r opera
Quote:

sudo rm -rf ~/.opera
If you still find opera, use your menu editor to find out how opera is called, and delete it from there if that is worth it to you.

Don Graham 05-01-2014 01:31 AM

Quote:

Originally Posted by eklavya (Post 5162397)
if that doesn't work:


If you still find opera, use your menu editor to find out how opera is called, and delete it from there if that is worth it to you.

here is what happened:

don@don-500-101l:~$ sudo apt-get --purge remove opera
[sudo] password for don:
Reading package lists... Done
Building dependency tree
Reading state information... Done
N: Ignoring file 'opera.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'opera.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package opera
don@don-500-101l:~$ sudo dpkg -r opera
dpkg: warning: ignoring request to remove opera which isn't installed
don@don-500-101l:~$ sudo rm -rf ~/.opera
don@don-500-101l:~$

As for using the menu editor I am a NEW-BEE I have no idea what that is or how to open one or use one.

eklavya 05-01-2014 02:10 AM

The filename should be opera.list & opera.list.save instead of opera.listsudo that's why it is giving error and you are not able to install opera
To remove first command error, run
Quote:

# sudo rm -rf /etc/apt/sources.list.d/opera*
Now run
Quote:

sudo apt-get --purge remove opera
To install opera
Run
Quote:

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

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

sudo apt-get update
Quote:

sudo apt-get install opera

Method - II for installation
You can install it from ubuntu software center, if you are not able to find opera there

Method - III for installation
There is another easier method.
Download opera deb file from here
Now run following command
# sudo apt-get install gdebi
Now right click on downloaded deb file and open with Gdebi package installer.
Now opera should be installed.

Don Graham 05-01-2014 02:35 AM

Quote:

Originally Posted by eklavya (Post 5162426)
The filename should be opera.list & opera.list.save instead of opera.listsudo that's why it is giving error and you are not able to install opera
To remove first command error, run

Now run


To install opera
Run






Method - II for installation
You can install it from ubuntu software center, if you are not able to find opera there

Method - III for installation
There is another easier method.
Download opera deb file from here
Now run following command
# sudo apt-get install gdebi
Now right click on downloaded deb file and open with Gdebi package installer.
Now opera should be installed.

As you can see, nothing happened. After line of type I pushed enter.

don@don-500-101l:~$ # sudo rm -rf /etc/apt/sources.list.d/opera*
don@don-500-101l:~$ open
Couldn't get a file descriptor referring to the console
don@don-500-101l:~$ sudo apt-get --purge remove opera
[sudo] password for don:
Reading package lists... Done
Building dependency tree
Reading state information... Done
N: Ignoring file 'opera.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'opera.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package opera
don@don-500-101l:~$ sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list
> sudo sh -c 'wget -O - http://deb.opera.com/archive.key | apt-key add -'
> sudo apt-get update
> sudo apt-get install opera
>

eklavya 05-01-2014 02:48 AM

Do not add hash before the command. The command should be
Quote:

sudo rm -rf /etc/apt/sources.list.d/opera*
same for method III
Quote:

sudo apt-get install gdebi

Don Graham 05-01-2014 03:16 AM

Quote:

Originally Posted by eklavya (Post 5162438)
Do not add hash before the command. The command should be


same for method III

On the last go around I copy/past the whole thing. Lets start over from the beginning.

Don Graham 05-01-2014 08:21 PM

Quote:

Originally Posted by eklavya (Post 5162426)
The filename should be opera.list & opera.list.save instead of opera.listsudo that's why it is giving error and you are not able to install opera
To remove first command error, run

Now run


To install opera
Run








Method - II for installation
You can install it from ubuntu software center, if you are not able to find opera there

Method - III for installation
There is another easier method.
Download opera deb file from here
Now run following command
# sudo apt-get install gdebi
Now right click on downloaded deb file and open with Gdebi package installer.
Now opera should be installed.

I did as you suggested and now Opera is installed. Thanks for your help.


All times are GMT -5. The time now is 10:19 PM.