On Wed, Apr 25, 2001 at 04:08:21PM +0530, sandeep sharma wrote:
> Could you please let me know how do we can install a rpm without being a
> super user.

Depends. If you're talking about avoiding "root" use on a box where you
normally do have root access, you should probably be looking into the "sudo"
command and set that up to run rpm (I haven't tried it, but I assume it
works from what I've seen on this list).

If you're talking about installing RPMs on a box where you do not have root
access at all, things become a bit tricky. If you're lucky, the RPM is
relocatable (this will be mentioned in the output of
"rpm -qip PACKAGE.rpm"). In that case, you might be able to redirect the
file locations to e.g. your home directory (I think the right command line
option is --prefix - read the rpm man page for more detailed info).
If the RPM is not relocatable (or only partly), you're out of luck. The only
option you're left with is to get the SRPM, install it (I'm not sure how,
but I *think* you can tell rpm to install the source somewhere else but
/usr/src/redhat) and modifiy the spec file to use paths you can access, then
rebuild and install the new RPM. Or to build your own RPM (with the right
paths) from scratch. Note: Some programs need root to change permissions on
files or similar - with those cases you're completely out of luck if you
have no root access.

HTH,

Thomas
-- 
             "Look, Ma, no obsolete quotes and plain text only!"

     Thomas Ribbrock | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
   "You have to live on the edge of reality - to make your dreams come true!"



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to