gp wrote:

> Finally it would have been better if rpm -q --whatprovides libpq.so.2
> can do a search if it is not yet installed because I realize that I
> did a rpm -qpl package-name | more and look at the RPMs one by one to
> really see where libpq.so.2 is found. It was only after installation
> that  rpm  -q --whatprovides works and told me who provides it.

This is why I wrote Gerald to get the whole list of files and save it
permanently so one can just grep it when you're looking for a particular
file.

    eg.  rpm -qpl  /mnt/cdrom/*.rpm >> list.txt

On the other hand, you might want to try using urpmi .   Instead of you
trying to specify which dependencies to install, it will try to look
include all the needed files and install them.  I'm using Mandrake.  I
don't know if Red Hat has this one.

----- 8< --- [man urpmi] -----

       urpmi  authorizes  well-known  rpms  (or  rpm files) to be
       installed including all their dependencies.  You  can  use
       it  to install source package dependencies too as root, or
       source package itself as simple user.

       You can compare rpm vs. urpmi  with  insmod  vs.  modprobe
       or dpkg vs apt-get

       Just  launch  urpmi followed by what you think is the name
       of the package(s), and urpmi will:
       - Propose different package names if availables and  quit.
       -  If  only  one  corresponding  package  is  found, check
       whether dependencies are already installed, or not.
       - If not, propose to install  the  dependencies  and  then
       install all required dependencies and the package.

       Note  that  urpmi handle installations from various medias
       (ftp, http, local and nfs volumes, removable  medias  such
       as  CDROMs)  and  is  able  to install dependencies from a
       media different from the package's media.   If  necessary,
       urpmi asks you to insert the required media.

----- 8< -----

--
God bless.

William
================================ icq #8313012 ====
  How many observe Christ's birth. How few His precepts.



_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to