how to install rpm as non-root in homedir

I just got a new job where all of our super computers run openSUSE

cat /etc/*release
openSUSE 11.2 (x86_64)
VERSION = 11.2

I have system wide read and execute permissions but I do not have write permissions to the (/usr)/bin, (/usr)/sbin and (/usr)/lib…

the software I want to install also have a tar file I can download and compile, but after reading up on rpm it seems it’s possible to install them in your home dir (Install a rpm in home directory as non-root | ajaya), and I generally prefer rpm/deb packages to make files :slight_smile:

but before following the “install guide” above, I would like to know if there are anything I should know before proceeding (differences between redhat rpm and suse rpm fx)… because I will not be popular if I crash the server :wink:

I usually run debian and am educated as a biochemist, so I do not have much experience with rpm.

NB: I only have access to the servers tru ssh

Most prepared RPMs cannot be installed in another location because the files in it are non-relocatable, certain paths have been assumed during compilation. You’d have to compile from source.

On 10/16/2011 11:06 AM, ken yap wrote:
>
> Most prepared RPMs cannot be installed in another location because the
> files in it are non-relocatable, certain paths have been assumed during
> compilation. You’d have to compile from source.

and, when you do just do the ‘make install’ as yourself and you won’t
need write permissions outside your home…

if the machine doesn’t have the bits necessary to compile, you might get
the administrator to add those…i am not sure that they can be added
however since openSUSE 11.2 has past its end of life (i can’t imagine
why a supercomputer owner would not opt for the longer life SUSE Linux
Enterprise version…but well, there you go!)

perhaps the compiler (if missing) is available via the Evergreen
project: http://tinyurl.com/4aflkpy


DD
http://www.youtube.com/watch?v=wDlM47j0Ae8
openSUSE®, the “German Automobiles” of operating systems

On 2011-10-16 10:56, azorius wrote:
>
> I just got a new job where all of our super computers run openSUSE
>
> cat /etc/*release
> openSUSE 11.2 (x86_64)
> VERSION = 11.2

That’s old already, no maintenance.

> I have system wide read and execute permissions but I do not have write
> permissions to the (/usr)/bin, (/usr)/sbin and (/usr)/lib…
>
> the software I want to install also have a tar file I can download and
> compile, but after reading up on rpm it seems it’s possible to install
> them in your home dir (‘Install a rpm in home directory as non-root |
> ajaya’ (http://ajaya.name/?p=6353)), and I generally prefer rpm/deb
> packages to make files :slight_smile:

I doubt you can install an rpm on home, binaries are not relocatable. You
have to read the particular package you compile for home install instead.

But better would be to ask the admin of that system to install the sofware
you need.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

It does depend on the rpm package; I have a distro agnostic rpm installed in /home/~/bin which works fine. But many rpms will have dependencies that require root access.

Thanks for all the feedback, I will try to see if I can figure out the make make install (or install rpm) locally w/o root permissions, and if that succeeds I will try on the server, if not I will try to find out who the sys admin is (the servers are not located physically at my work place :D) and ask him to install it for me.

we have many super computers ranging from 768 to 16 cores (and from 4 to 16 GB ram pr core), I haven’t checked what OS the ones with 64-768 cores have installed (I am not even sure I have access or what their names are :D), I just looked at the 3 smallest one of them, because the larger ones have queuing systems that are quite advanced and the program i want to install is not threaded anyway, so I don’t need a “super computer” I just need a computer that stays up for a week straight :slight_smile:

The reason why it has such an “old distro” is because it hasn’t been down in 287 days. I can see that 10.3 came out a little before that. But I assume that some of the other servers have had longer up time and they want them all to have the same distro?

I am glad to learn that yet another linux community if friendly and welcoming :slight_smile:

On 10/18/2011 02:56 PM, azorius wrote:
>
> Thanks for all the feedback, I will try to see if I can figure out the
> make make install (or install rpm) locally w/o root permissions, and if
> that succeeds I will try on the server,

the thing is, that when compiling the first couple of steps (normally
configure and make) should always be done as a non-root user…then, if
the resulting application is to be available to all users on the
system it needs to be installed to the system, but the administrator…

but, if you are the only user on the machine that needs the application
it is perfectly ok to run the final step (normally ‘make install’) as
yourself and the ‘stuff’ will automatically be placed inside your home
directory, and available to you only…

> if not I will try to find out
> who the sys admin is (the servers are not located physically at my work
> place :D) and ask him to install it for me.

unless it is really strange source it should “just work”, no
problem…well, if the compiler is setup, and if all the dependencies
are satisfied…

if you have errors, just holler…maybe we can help, maybe not…


DD
http://tinyurl.com/DD-Caveat
openSUSE®, the “German Automobiles” of operating systems