Knowledge Management

what directory to run rpm -e command from?

TimEek
Path Finder

I've tried where I've installed from, where I've installed splunk, but none seem to work. It keeps telling me it isn't installed even though I used the rpm to install Splunk. What directory do I need to be in to uninstall?

0 Karma

lguinn2
Legend

This appears to be a question about your operating system package management, not about Splunk. What OS are you using and what command did you use to install Splunk?

Unless you configured it to do otherwise, all of Splunk's files are stored in the directory where you installed Splunk. The only exceptions would be the boot-start script (if you set boot-start on Linux) and the location of the indexes (if you changed it from the default).

So if you can't uninstall Splunk with the package manager, you should be able to simply delete the Splunk directory tree.
You should also kill any running Splunk processes, if there were any. (On Windows, Splunk runs as a service, so you would need to disable/delete the service.)

0 Karma

TimEek
Path Finder

I used centOS, and installed using rpm -i splunk-package-name.rpm in the Downloads folder. It automatically installed to /opt/splunk.

I now I can delete Splunk manually, but then I also have to run a yum erase splunk command on top of that since it doesn't seem to uninstall correctly when I do that (when I run the rpm -i again, it tells me splunk is already installed even when I just manually uninstalled it).

The uninstall guide tells me to run rpm -e splunk-package-name, but it never mentions where and I can never get it to run..

0 Karma
Get Updates on the Splunk Community!

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...

Alerting Best Practices: How to Create Good Detectors

At their best, detectors and the alerts they trigger notify teams when applications aren’t performing as ...

Discover Powerful New Features in Splunk Cloud Platform: Enhanced Analytics, ...

Hey Splunky people! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2408. In this ...