Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: InteXX 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
-
InteXX
the standard uninstall command is
rpm -e packagename
eg
rpm -e smeserver-dar2
-
Got it, thanks!
(For future reference, how does one determine the package name? Is there a way to obtain a listing?)
-
yes..
rpm -qa
ciao
Stefano
-
Ah.
RTFM, eh? ;)
Thanks!
-
One quick clarification, though...
Mary kindly provides the tip:
rpm -e smeserver-dar2
However the listing returned by the -qa switch provides the dar2 entry with more detail:
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
-
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.
-
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
-
InteXX
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
...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.
-
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:
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..
-
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.
-
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:
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 :)