[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rpm



On Sun, 27 Aug 2000, Emmanuel Lanzmann wrote:

> 
> I have Red Hat linux (6.1). I recently decided to upgrade rpm to
> 3.0.5-9. Instead to do it with rpm, I decided to download the
> SOURCE (of rpm) and to compile it (I really like to see my computer
> compiling !!). So far, evrything went great.

Why did you choose rpm?

And why did you run "make install" if all you needed was to see your
computer compiling ? Anyway - something like 'rpm --rebuild
rpm-<version>.src.rpm' is the "right" way to compile your packages, and
still keep package management in tact.

> 
> Now, since then, when I try to install some package with rpm it
> almost always complains that a lot of stuff are missing (i.e.
> dependencies). I am ready to admit that my libraries are certainly
> not all up to date (!!), but it oftencomplains for instance that
> 
>  /bin/sh is needed by .... (the package I am installing)
>  /usr/bin/perl is needed by ....
> 
> Which I certainly do have !!!.

There are two options:

1. your newly installed rpm uses a seperate database. The default rpm
database for redhat (probably other distros as well) is under /var/lib/rpm
 There are a couple of files with ".rpm" extention. Try to see what
database does rpm use (i.e. -run 'rpm -qf /bin/sh' and strace it). If it
uses a seperate database - see how to confgure it to run properly.

2. The installation overwrote the exiting database. You are in some truble
here, because you lost all the information about installed packages.
For the shortrun you may use the --nodep switchh to skip dependenccy
checks (don't use --fixed).
Anyway - I can't think of anything smarter than reinstallation. I don't
remeber any switch to rpm to update the database only. If such an option
exists - yu may manually rebuild your rpm database by adding all packages
into it. I think "rpm --rebuilddb" does something different.

> 
> 
> So, something is apparently going wrong since I installed this new
> version of rpm. Does someone has an idea ?
> 
> It is probably stupid, but I don't see it right now.

I believe what happened is #2. to verify that - check if the install
script runs "rpm --initdb".

Good luck

-- 
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il