LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-18-2003, 03:07 PM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Rep: Reputation: 30
how to uninstall software on Linux


Sorry , this is a easy question but I am new

I install backup agent client on the linux server 2.1. During the installation, there is a default to /opt and I click yes and I guess the software was installed in the folder. After playing with it , I delete the backup agent folder under /opt and when I tried to install the software again, it said the software already installed.

the question is how can uninstall the software so I can reinstall it again.

thank
 
Old 09-18-2003, 03:35 PM   #2
speter
Member
 
Registered: Sep 2003
Location: Edison, NJ
Distribution: Fedora, Mac OS X
Posts: 313

Rep: Reputation: 30
How did you install the software? If you used a script, there is frequently an option to clean past installations. If you used rpm, try rpm -U.

Steve
 
Old 09-18-2003, 03:42 PM   #3
gbell72
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: FreeBSD
Posts: 78

Rep: Reputation: 15
actually the -U flag for rpm is to upgrade a package to remove a package the flag is rpm -ev <packagename> the v giving u verbose output of what is actually being uninstalled and if by uninstalling that package the v helps you to determine if your going to break dependencies.

Last edited by gbell72; 09-18-2003 at 03:44 PM.
 
Old 09-18-2003, 03:43 PM   #4
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Original Poster
Rep: Reputation: 30
there was instructions and it asked to me run ./install and it installed, there was also an rpm file in there, when I want to uninstall it, your advise is type "rpm -U" only??? How dows Liux know which software it suppose to uninstall????

thnaks
 
Old 09-18-2003, 03:48 PM   #5
graffitici
Member
 
Registered: Jun 2003
Location: Istanbul - Turkey
Distribution: Fedora, Gentoo
Posts: 150

Rep: Reputation: 15
what they mean by rpm -ev (and not U) is the following:
rpm -ev packagename
of course if you simply right rpm -ev, rpm cannot know what file to remove. You need the package name, which you use when you install. To find it you can try:
rpm -qa|grep name
where name is the name of the package.
this should print the a longer package name which typically goes:
package-name-rh9-i386.rpm

(These are really basic informations that has been repeated numerous times on this group. You have to read about these on documentation pages!)

But if you ran a script then the answer is not rpm. You should read the INSTALL file, perhaps they explain how to remove this software there.

Last edited by graffitici; 09-18-2003 at 03:50 PM.
 
Old 09-18-2003, 04:42 PM   #6
speter
Member
 
Registered: Sep 2003
Location: Edison, NJ
Distribution: Fedora, Mac OS X
Posts: 313

Rep: Reputation: 30
Quote:
Originally posted by ashley75
there was instructions and it asked to me run ./install and it installed, there was also an rpm file in there, when I want to uninstall it, your advise is type "rpm -U" only??? How dows Liux know which software it suppose to uninstall????
Yes, you need to type the package name. (You will frequently see Unix commands given with a particular flag, but without specifying that you have to type the file name or input file and output file. I suppose I shouldn't follow that habit here.)

But if you ran ./install (without reading the script), rpm will not help you.

Yes, gbell, -U does upgrade, rather than remove. Since the original poster said they wanted to reinstall, it seemed like an easier move.

My apologies for skipping steps.

Steve
 
Old 09-18-2003, 04:59 PM   #7
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Original Poster
Rep: Reputation: 30
thanks all

it's working now
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how does one uninstall software in Linux FC 2 aschandru Fedora 1 04-26-2005 07:55 AM
how to uninstall a software? jiapei100 Linux - General 7 03-13-2005 12:05 PM
how to uninstall a software :King_58: Linux - Newbie 16 10-01-2004 03:00 PM
How to uninstall software in Linux? san_lss Linux - Newbie 6 12-13-2003 12:12 AM
Is it possible to uninstall linux software Goatdemon Linux - Software 2 06-21-2002 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:52 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