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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...