Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-04-2005, 05:35 AM   #1
LQ Newbie
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Question not found

when i try to install any rpm it gives me error dependency not found of i don't know which rpm to install so that i can install the rpms
some rpms get installed but some give error i.e the dependency not found and lists few others well should i get the fedora core 1 cd and install the rpm which can give this but i don't know which rpm contains that or is there any command to get this from existing package ???
Old 03-04-2005, 10:47 AM   #2
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Install glibc.

How do you find out the answer to this question? You can learn the name of the package that installed a file by typing:
rpm -qf filename
... but you don't have the file installed. So, the simple way is to ask someone that has it installed to type that command on their system and tell you the answer. This is exactly what I did.

It would seem that rpm should have a method of doing this on a directory full of uninstalled rpm files from your distro disks, but if it does, I haven't discovered it yet. Here is a brute force method:
1.  Mount your distro cdrom.
2.  cd to the directory that has all the rpm files on it.
3.  Run the perl script shown below using the file name you are looking for as the argument
4.  Repeat for your other distro disks if you havent found it.
Here are the results from my Redhat 9 system:
/lib/ is installed by package glibc-2.3.2-27.9.7.i386.rpm
/lib/i686/ is installed by package glibc-2.3.2-27.9.7.i686.rpm
/lib/ is installed by package glibc-2.3.2-27.9.7.i686.rpm
/lib/tls/ is installed by package glibc-2.3.2-27.9.7.i686.rpm
Here is the perl script. I named mine "".
$target = $ARGV[0];
@packages = `ls -1 *.rpm`;
foreach $p (@packages) {
  chomp $p;
  @files = `rpm -qlp $p 2>/dev/null`;
  foreach $f (@files) {
    chomp $f;
    if ($f =~ /$target/) {
        print "$f is installed by package $p\n";


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post, needed for Linux 7.3.1 vivek_thampy Linux - Software 1 08-09-2004 04:12 PM
Libc? DARKRAIN Fedora 1 02-21-2004 10:11 AM
xauth: /lib/i686/ version 'GLIBC_2.3.2' not found yigald Linux - Newbie 0 02-20-2004 11:52 PM verse markstevens Linux - Software 4 06-19-2003 11:41 AM bash Linux - Distributions 2 08-09-2002 07:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration