Unpacking RPM packages
In some cases, software is only available as RPM package and can not directly be compiled from source. You can not install such software the usual way (yum, rpm) because of lack of privileges. It so however possible to install RPM packages in user space if they do not contain scripts that need to be executed as root user.
How To Install an RPM Package as a User
Keep in mind that Euler and Leonhard currently use CentOS 7.4 and that the RPM needs to be compatible with the clusters operating system.
To install it, you will have to manually unpack it.
- Obtain the package
- Go to your home directory:
- Unpack the package:
rpm2cpio myrpmfile.rpm | cpio -idmv
- (Only once) Add ~/usr/bin to your PATH environment variable and add ~/usr/lib64 to your LD_LIBRARY_PATH environment variable. One way to do this is to add the following two lines to your ~/.bashrc file:
Note that everything must be done manually including possibly installing all dependencies.