Sukrit K Mehra forced the electrons to say:
> A. Can't one install rpms from non-root accounts. When i try to do so, it give
> an error saying `can't open /var/lib/rpm/somefile.rpm'
> i did a chmod 666 on that particular file still no use.
Don't do that. You are compromising the integrity of your packages
database. Reset it back to the default 644 immediately. I have a feeling
you have corrupted your database already. :-)
One cannot (and shouldn't be able to) install RPMs from non-root
accounts. RPMs have (usually) files packaged which reside in /usr/bin
or /usr/lib or other system areas, to which only root has write access.
IIRC, kpackage/gnorpm ask for the root password if you try installing
packages from them.
> B. Also, i want to install some package in /usr/local.. i have the rpms how
> do i change the default install paths.
Generally, you can't. That is one of the trade offs when one uses a
packaging system like RPM and instead of compiling/installing from
sources. The only variety of RPMs that one can install elsewhere are
relocatable RPMs, which can be installed using different paths (rpm
-i --relocate /usr=/usr/local), but these packages are rare. You can
check whether a package is relocatable via querying the package; rpm
-qi vim gives:
Name : vim Relocations: (not relocateable)
<snip>
Binand
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr