[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.
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?
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.
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...
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.
What if the splunk HF is installed in a customised location.
Where to mentioned the path??
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:
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.