[H-GEN] Installing Binary RPMs as non-root user

James Lever jamver at adams.humbug.org.au
Sat Oct 18 01:54:55 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Hi Ray,

According to Raymond Smith (on Tue, Oct 14, 2003 at 03:47:21PM +1000):
> Is there anyway for a non-root user to install RPMs into a
> directory hierarchy that they own? Failing that, does anyone
> have pointers on the best method to deconstruct an RPM so I
> can try to install its contents as a non-root user?

You're after this:

       rpm   {--initdb|--rebuilddb}   [-v]   [--dbpath DIRECTORY]
       [--root DIRECTORY]

       Use  --initdb to create a new database, use --rebuilddb to
       rebuild the database indices from  the  installed  package
       headers.

the --root flag both with --initdb to setup and then -ivh to install.

so... 

mkdir -p /home/user/rpmfoo/var/lib/rpm
rpm --initdb --root=/home/user/rpmfoo
rpm --root=/home/user/rpmfoo -ivh packagename.rpm

You may still have some trouble and may need --nodeps and yet may
still need to install dependancies.

cheers,
James

-- 
http://home.visac.uq.edu.au/people/jamver/index.html#sigs


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list