On Wed, 14 Feb 2001, Mukund wrote:

> >sreangsu acharyya wrote:
> >> rpm -qf <file_with _full_path>

> This is OK if the file or library is already installed.
> 
> For example if I run rpm -ivh kde*.*
> I get a dependency list of files/library require.
> Now these are not installed my machine, So how do I know which rpm contains
> these files.

Hi Mukund ;)

  this asking a bit too much. The individual packages have info regarding
what all packages it needs, not in which rpms those are in turn available.
And any rpm that you chose to install updates the database in your machine
with the details. So rpm_s which you havent installed will not have an
entry.

one way would be to have something like

 for name in `rpm -qR <your package>`
 do
 for name2 in `*.rpm` # in the directory containing uninstalled rpms
 do
 for name3 in `rpm -qpl $name2
 do
 if [ "$name3" = "$name1" ]
 then
 echo -e "2 $name2"
 fi
 done
 done    
 done

but on the more practical side, the pages in rpmfind.net have a "requires"
section, in which each dependency is a link to the rpm which provides the
functionality.

sreangsu


----------------------------------------------
LIH is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.

Reply via email to