Getting Data In

Unable to upgrade HF server from 8.2 to 9.01 using rpm command

phanikumar915
Engager

[user]$ sudo rpm -U --prefix=/opt/splunk splunk-9.0.1-82c987350fde-linux-2.6-x86_64.rpm
error: splunk-9.0.1-82c987350fde-linux-2.6-x86_64.rpm: not an rpm package (or package manifest):

note: opt/splunk is my splunk binary location of my HF

please advise.

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

This does not look like a problem with instaling the package but rather with the package file itself. Try to verify if the package can be converted to cpio archive without erors using rpm2cpio and then unpacked by cpio.

The rpm packaged Splunk installs to /opt/splunk by default.

Do you have your current version installed with rpm or from tgz?

0 Karma

phanikumar915
Engager

Hi ,

Thanks for the Solution, have tried the tgz files to unpack the files instead of rpm.

Now the HF upgrade to newer version.

Thanks for the support.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Wait a second. If you had your splunk instance installed from rpm package, it's not a very good idea to overwrite it with manually unpacked tgz...

isoutamo
SplunkTrust
SplunkTrust
Definitely You must use the same method than earlier! If you want to change the method, the you should remove old installation first and then add the new one.
0 Karma

isoutamo
SplunkTrust
SplunkTrust

You should use just 

sudo yum update splunk-.....

The default path is /opt/splunk, so no need to add it here. Also unless you have really old rh based on (where you cannot run splunk 9) use yum or dnf instead of rpm. 

0 Karma

phanikumar915
Engager

What if the splunk HF is installed in a customised location.

Where to mentioned the path??

0 Karma

isoutamo
SplunkTrust
SplunkTrust

As it has said here https://access.redhat.com/solutions/199433 that kind of feature hasn’t ported to yum. If you really need to install it to different location you have two options:

  1. use tar.gz package
  2. use rpm

I think that in most cases where you are needing separate prefix/path, you have several version running. In those cases you should use tar.gz packages.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...