Installation

Upgrade Splunk using RPM

csoh
Engager

Hi,

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?

Thanks

Tags (2)

DavidHourani
Super Champion

Hello,

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,
David

treinke
Builder

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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...