"Ankush" <ankush at ensim.com> wrote:
> 
> Hi,
> I am trying to install an RPM in the %post script of a spec file. But on
> doing so it gives me an "exclusive lock on database" error. If you have
> come across this problem before please send me a mail at your latest.

When rpm and other installers (Red Carpet, etc) install packages, they
obtain an exclusive lock to the database and no other process can access
the database until they're finished.  Therefore, you can't start a new
installer process from the scripts within RPM files..

The proper thing to do is to put all of the right files in a directory,
then run `rpm -Uvh *.rpm' or a similar command..

> Also if you have any idea of how to "rpm -ivh --nodeps <rpm file>"
> without installing the rpm, but from the build itself, please let me
> know.

I'm not quite sure what you mean by this...  Are you just looking for
`make install'?


I've recently taken to building RPMs from tarballs.  It's usually pretty
easy, though some stuff doesn't always compile (silly RedHat with their
unstable compilers...)  Of course, the tarball has to have an appropriate
.spec file in it.

    rpmbuild --tb file-0.0.1.tar.gz

or

    rpm -tb file-0.0.1.tar.gz

-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   On the other hand, you 
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   have different fingers. 
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)                             
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088 at tc.umn.edu ]