Upgrade Splunk using RPM



If Splunk is installed at /Splunk/splunk location, which option should I use to upgrade Splunk using RPM?
Is it rpm -U --prefix /Splunk or rpm -U --prefix /Splunk/splunk?


Tags (2)

Super Champion


I don't know if you got your answer or not. But by default splunk is installed into /opt so if you installed in lets say /mnt/XX and you wish to update it, simply issue the following command:

rpm -Uvh splunk-6.0.2-196940-linux-2.6-x86_64.rpm --relocate /opt=/mnt/XX/

(The relocate part tells splunk to apply the update to /mnt/XX/ instead of /opt)

You can alose use the relocate part of the command to change the default install directory.

Best regards,


I typically download the rpm and then iussue:

rpm -Uvh splunk-X.X.X-XXXXXX-linux-2.6-x86_64.rpm

There are no answer without questions
Get Updates on the Splunk Community!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...