LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-04-2005, 03:50 AM   #1
makis
LQ Newbie
 
Registered: Apr 2005
Location: Athens, Greece, Glasgow,Scotland
Distribution: Ubuntu Breezy, Single Boot
Posts: 7

Rep: Reputation: 0
How to uninstall apps on Linux??


Hi all,

I am newbie on Linux and I have a question:

how should a user uninstall a program installed manually ?? (without Mandrake's update).
how could a user find where have ALL the parts of the app been written??

Maybe my question is elementary, but I am new on Linux

for e.g. I installed eDonkey2000. After playing with my firewall (a lot ), the eDonkey didn't connect to the Internet anymore. I tried to find its uninstaller (where in the hell??) I couldn't. I searched with "find" and deleted all its files (thought so). Then, I tried to install it again (edonkeyclc-1.1.0-1.i386.rpm --the core-- & ed2k-gtk-gui-0.6.3-2.i386_compat.rpm --the gui--) but says that edonkey is all-ready installed!!!!

So I wonder: there is no registry here! all the files and folders started from ed* related with the names of the installed rpms are removed (more than 20!)... How says is is still installed??

Any help deeply appreciated!!!!

thx a lot!
 
Old 04-04-2005, 04:08 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
If you installed a program from an .rpm file, use the "-e " flag to uninstall it:

rpm -e whatever

to install something, use the "-ivh" flag:

rpm -ivh whatever.rpm

I = install, v=verbose and h=hash(#). If you need to know more about .rpm's, type "man rpm" at the terminal. Learn well Linux command line instead of those fancy tools because 1 - It's less buggy and 2 - using command line is more generic, meaning everyone using Linux (not only Mandrake) would be able to help you out. Take also a look into this thread for a quick intro about installing programs in Linux:

http://www.linuxquestions.org/questi...threadid=45094

Regards!

Last edited by Mega Man X; 04-04-2005 at 06:15 AM.
 
Old 04-04-2005, 04:50 AM   #3
makis
LQ Newbie
 
Registered: Apr 2005
Location: Athens, Greece, Glasgow,Scotland
Distribution: Ubuntu Breezy, Single Boot
Posts: 7

Original Poster
Rep: Reputation: 0
thank you very much Megaman X!!

and what you said is absolute right! In fact, with eDonkey, I was downloading e-books with console commands for Linux!!

from now and then I will try to use console for as many things as I can.

anyway, just for the history, I tried to uninstall any remaining parts of eDonkey and I received this:

[root@localhost makis]# rpm -e edonkeyclc-1.1.0-1.i386.rpm
error: package edonkeyclc-1.1.0-1.i386.rpm is not installed
[root@localhost makis]# rpm -e ed2k-gtk-gui-0.6.3-2.i386_compat.rpm
error: package ed2k-gtk-gui-0.6.3-2.i386_compat.rpm is not installed


Then, happy, I tried to install it again:

[root@localhost eDonkey2000]# rpm -ivh edonkeyclc-1.1.0-1.i386.rpm
Preparing... ########################################### [100%]
package edonkeyclc-1.1.0-1 is already installed
[root@localhost eDonkey2000]# rpm -ivh ed2k-gtk-gui-0.6.3-2.i386_compat.rpm
Preparing... ########################################### [100%]
package ed2k-gtk-gui-0.6.3-2 is already installed

hehehe, what to do? how to install something which is already installed and can't be uninstalled because it is not installed??

Furthermore, I tried "man rpm": Is there any option to copy/paste and print such a huge document??

Regards!
 
Old 04-04-2005, 04:56 AM   #4
Zodar
LQ Newbie
 
Registered: Dec 2004
Location: Italy PO
Distribution: SuSe 10.0
Posts: 24

Rep: Reputation: 15
Try with

rpm -Uvh

U=Upgrade...
Btw, I'm afraid that "manual deleting" and "rpm uninstalling" are not properly "friends"...

Zodar
 
Old 04-04-2005, 05:05 AM   #5
makis
LQ Newbie
 
Registered: Apr 2005
Location: Athens, Greece, Glasgow,Scotland
Distribution: Ubuntu Breezy, Single Boot
Posts: 7

Original Poster
Rep: Reputation: 0
Thx Zodar for the help!

Unfortunately, the feedback is:

root@localhost eDonkey2000]# rpm -Uvh edonkeyclc-1.1.0-1.i386.rpm
Preparing... ########################################### [100%]
package edonkeyclc-1.1.0-1 is already installed
[root@localhost eDonkey2000]# rpm -Uvh ed2k-gtk-gui-0.6.3-2.i386_compat.rpm
Preparing... ########################################### [100%]
package ed2k-gtk-gui-0.6.3-2 is already installed

hehehe...

the answer must be in the options. I am trying to find it under the command "man rpm" but is huge. I try to copy/paste ->print it out...

thx a lot!
 
Old 04-04-2005, 05:52 AM   #6
Zodar
LQ Newbie
 
Registered: Dec 2004
Location: Italy PO
Distribution: SuSe 10.0
Posts: 24

Rep: Reputation: 15
mmm... and

rpm -ihv --force blabla.rpm
?

I don't know very well i "--force" is for dependency only... Try...

Zodar
 
Old 04-04-2005, 05:57 AM   #7
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
When you uninstall a package you shouldn't type the name of the file, but only the name of the package.
In your case, to manually install a file named edonkeyclc-1.1.0-1.i386.rpm you type 'rpm -i edonkeyclc-1.1.0-1.i386.rpm'.
But to uninstall it you only have to type 'rpm -e edonkeyclc'

Example: to install the bc-1.06-13mdk.i586.rpm file I can run 'rpm -i bc-1.06-13mdk.i586.rpm'
To remove it I can run 'rpm -e bc' or 'rpm -e bc-1.06-13mdk'.

If you don't know what to type, either use the package tool in 'mcc' or first do a 'rpm -qa | grep bc' (in my case).

- Peder
 
Old 04-04-2005, 06:14 AM   #8
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Yup, bunnadik is correct. Sorry, my bad: you should not need to type the hole name to uninstall a program. I've corrected my first reply.

Regards!

Last edited by Mega Man X; 04-04-2005 at 06:16 AM.
 
Old 04-04-2005, 06:46 AM   #9
makis
LQ Newbie
 
Registered: Apr 2005
Location: Athens, Greece, Glasgow,Scotland
Distribution: Ubuntu Breezy, Single Boot
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you Zodar and Peder and Megaman!

I tried to uninstall the rest using the Peder advice of not using all the name of the rpm file and worked!!

[root@localhost makis]# rpm -e edonkeyclc
[root@localhost makis]# rpm -e ed2k
error: package ed2k is not installed
[root@localhost makis]# rpm -e ed2k-gtk
error: package ed2k-gtk is not installed
[root@localhost makis]# rpm -e ed2k-gtk-gui

as u can see, as a name is considered everything before the edition and the extension (the name of the original file is ed2k-gtk-gui-0.6.3-2.i386_compat.rpm)

after that I tried to install them again and:

[root@localhost eDonkey2000]# rpm -ivh edonkeyclc-1.1.0-1.i386.rpm
Preparing... ########################################### [100%]
1:edonkeyclc ########################################### [100%]
[root@localhost eDonkey2000]# rpm -ivh ed2k-gtk-gui-0.6.3-2.i386_compat.rpm
Preparing... ########################################### [100%]
1:ed2k-gtk-gui ########################################### [100%]

EVERything is ok now, my eDonkey runs ok, but I still have a (possible) firewall problem!

this app is consisted by the core and the gui. when running the gui I receive the following message:

connecting to locally running core (/home/makis/tmp/.mm-auth-cookie-4663)
GUI: Could not establish GUI-core connection. (Core running? Core listening on 'aport' 4663? Core firewalled?)

I disable the firewall with "ccm->security->firewall-> tick the first box (no firewall) " and running again the gui I receive the same message.

I run the core in the console and I receive:

[root@localhost bin]# ./edonkeyclc
[--- Storing settings in '/root/.eDonkey2000' ---]
Can't load default skin, reinstall clean
Error: Port In Use Already. There is no good previous port, please change in Options
Upload Queue not loaded


I close the gui, I run the core in the console and I receive the same message. I check the edonkey options and I have:

Name: odwlq
Max Download Speed: 0.00
Max Upload Speed: 0.00
Line Speed Down: 0.00
TCP Port: 0
UDP Port: 7821
Admin Port: 4663
Admin Name:
Admin Pass:
Verbose: 0
SaveCorrupted: 1
MaxConnections: 45
ScreenLines: 24
Allow Private Messages: 0
Allow Viewing of Files: 0

Any Idea of what is going on here??

Thank you very much all of you!!

Makis

Last edited by makis; 04-04-2005 at 06:48 AM.
 
Old 04-04-2005, 08:19 AM   #10
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
The problem seems to be that you either have an instance of edonkeyclc already running in some
defunct or zombie state or you killed -9 it (or it segfaulted or whatnot) so it didn't clean up the
cookie.
Try removing any /home/makis/tmp/.mm-auth-cookie and restart edonkeyclc.

- Peder
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack 9.1 - PHP apps can't access MySQL but Perl Apps can tallship Linux - Software 1 06-13-2004 08:41 AM
Clean way to uninstall apps installed from source JrLz Linux - General 2 05-06-2004 07:38 AM
Brand New to Linux, intermediate Programmer, want to program for linux destop apps albertrosa Programming 4 12-08-2003 07:49 AM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 04:49 AM
How to uninstall tar.gz apps merlinxx Linux - General 3 03-07-2002 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration