Koozali.org: home of the SME Server

How to uninstall DAR2?

Offline InteXX

  • **
  • 39
  • +0/-0
    • www.intexx.com
How to uninstall DAR2?
« on: May 17, 2009, 08:09:58 AM »
It's a pretty handy little utility, and I learned a lot about DAR and SME in general by dissecting and studying its scripts and templates. Unfortunately, however, it turns out that it doesn't meet our needs and I'd like to remove it from the server, panels and all.

I'm pretty new to Linux, so I'm afraid I'm going to need some hand-holding on this one. After logging in as root with PuTTY, what are the commands I should issue to complete this task?

Thanks,
Jeff Bowman

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to uninstall DAR2?
« Reply #1 on: May 17, 2009, 05:15:45 PM »
InteXX

the standard uninstall command is
rpm -e packagename
eg
rpm -e smeserver-dar2
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline InteXX

  • **
  • 39
  • +0/-0
    • www.intexx.com
Re: How to uninstall DAR2?
« Reply #2 on: May 17, 2009, 07:31:43 PM »
Got it, thanks!

(For future reference, how does one determine the package name? Is there a way to obtain a listing?)
« Last Edit: May 17, 2009, 07:34:21 PM by InteXX »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to uninstall DAR2?
« Reply #3 on: May 17, 2009, 08:13:16 PM »
yes..

Code: [Select]
rpm -qa

ciao
Stefano

Offline InteXX

  • **
  • 39
  • +0/-0
    • www.intexx.com
Re: How to uninstall DAR2?
« Reply #4 on: May 17, 2009, 09:15:15 PM »
Ah.

RTFM, eh?  ;)

Thanks!

Offline InteXX

  • **
  • 39
  • +0/-0
    • www.intexx.com
Re: How to uninstall DAR2?
« Reply #5 on: May 17, 2009, 09:35:42 PM »
One quick clarification, though...

Mary kindly provides the tip:

Code: [Select]
rpm -e smeserver-dar2
However the listing returned by the -qa switch provides the dar2 entry with more detail:

Code: [Select]
smeserver-dar2-0.0.1-23.el4.sme
Again, for future reference with other uninstalls, how would one determine from the -qa listing the correct package name syntax to use with the -e switch? Is it always limited to the text immediately preceding any digits? Some light testing with the -ql switch seems to indicate that it doesn't matter.

Thanks,
Jeff
« Last Edit: May 17, 2009, 09:41:05 PM by InteXX »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to uninstall DAR2?
« Reply #6 on: May 18, 2009, 07:07:24 AM »
InteXX

man rpm
or search google on the rpm command

[/quote] Is it .... limited to the text immediately preceding any digits? [/quote]

Yes, in the syntax that was suggested.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline InteXX

  • **
  • 39
  • +0/-0
    • www.intexx.com
Re: How to uninstall DAR2?
« Reply #7 on: May 18, 2009, 09:06:27 AM »
Hi Mary, thanks for sticking with this.

As I'm a developer, I tend to want to nail things down to the finest of detail. In other words, I can be pretty damn picky!  :)

I looked through the rpm manual as you suggested, but while I did note several references using the terms 'Package Name' and 'Package File,' I didn't find anything specifically about extracting package names from the full package listings as provided by the -qa switch. Maybe I missed it; if so would you kindly correct me.

Could you clarify: I can't help but notice that in your reply you've removed my use of the word always. Does this mean that when you say "Yes, in the syntax that was suggested," you're referring only to the syntax for the DAR2 package?

Or is it instead the case that it's an across-the-board standard that the -e switch requires [PACKAGE NAME] as extracted from [PACKAGE NAME][-VERSION NUMBER]?

Thanks,
Jeff


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to uninstall DAR2?
« Reply #8 on: May 18, 2009, 01:46:05 PM »
InteXX

Quote
As I'm a developer, I tend to want to nail things down to the finest of detail.

Then I would have thought you would have read man rpm more carefully !

rpm -q
will show the packagename including version and release (numbers)

rpm -qi
will show information about the rpm (including the above)

in the case of dar2 you can do
rpm -e smeserver-dar2
or
rpm -e smeserver-dar2-0.0.1-23.el4.sme

depending on which version you have installed of course, as shown by
rpm -q packagename
or
rpm -qi packagename

Quote
...I can't help but notice that in your reply you've removed my use of the word always. Does this mean that when you say "Yes, in the syntax that was suggested," you're referring only to the syntax for the DAR2 package?

No I was referring to the syntax I suggested for the rpm -e command.

As shown above it does not always have to be that (ie the shorter command), as you can use the name plus version and release details

The shorter command is more practical to use.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to uninstall DAR2?
« Reply #9 on: May 18, 2009, 02:10:21 PM »
InteXX

you have to use the full package name only in the case you have many versions of the same package.. think about the kernel.. :-)

try this:
Code: [Select]
rpm -qa | grep kernel*

you should have many..

Ciao
Stefano

p.s. for any doubt about any linux (i.e. not SME related) command, please ask Google..

Offline InteXX

  • **
  • 39
  • +0/-0
    • www.intexx.com
Re: How to uninstall DAR2?
« Reply #10 on: May 24, 2009, 03:29:46 AM »


Then I would have thought you would have read man rpm more carefully !

Ha! Touché  :)

So here's the best approach I can see from here:

  rpm -ql
  rpm -qi <Full Package Name/Version>
  rpm -e  <Short Package Name>


Works like a charm.

Thanks Mary.



Offline InteXX

  • **
  • 39
  • +0/-0
    • www.intexx.com
Re: How to uninstall DAR2?
« Reply #11 on: May 24, 2009, 03:37:44 AM »


you have to use the full package name only in the case you have many versions of the same package.. think about the kernel.. :-)

try this:
Code: [Select]
rpm -qa | grep kernel*

you should have many..

It's all starting to come clear to me...



p.s. for any doubt about any linux (i.e. not SME related) command, please ask Google..

Yes, Google is our friend  :)