This discussion is archived
2 Replies Latest reply: Apr 16, 2013 4:33 AM by Dude! RSS

linux rpms dependencies

995131 Newbie
Currently Being Moderated
i have tried to install rpm's packages in linux 6.3
but it give me some error like :
rpm -Uvh elfutils-libelf-0*

error: Failed dependencies:
     ld-linux.so.2 is needed by elfutils-libelf-0.152-1.el6.i686
     ld-linux.so.2(GLIBC_2.3) is needed by elfutils-libelf-0.152-1.el6.i686
     libc.so.6 is needed by elfutils-libelf-0.152-1.el6.i686
     libc.so.6(GLIBC_2.0) is needed by elfutils-libelf-0.152-1.el6.i686
     libc.so.6(GLIBC_2.1) is needed by elfutils-libelf-0.152-1.el6.i686
     libc.so.6(GLIBC_2.1.3) is needed by elfutils-libelf-0.152-1.el6.i686
  • 1. Re: linux rpms dependencies
    Bjoern Rost Oracle ACE Director
    Currently Being Moderated
    why bother running rpm directly? The easiest way to download and install packages and resolve dependencies is to use yum. just set up a repository with either ULN (if you have a support contract) or public-yum and do a 'yum install elfutils-libelf' and that will resolve all dependencies for you.

    here are two links that should get you started:
    https://blogs.oracle.com/wim/entry/setting_up_oracle_linux_6
    http://www.oracle-base.com/articles/linux/installing-software-packages.php

    cheers
    bjoern
  • 2. Re: linux rpms dependencies
    Dude! Guru
    Currently Being Moderated
    In addition to the previous response, the following commands
    $ su - root
    # cd /etc/yum.repos.d
    # wget http://public-yum.oracle.com/public-yum-ol6.repo
    will configure yum to download software including updates and errata from the Oracle public yum internet site. There is no need to edit the repo file. However, wget as outlined does not overwrite existing files, so you may need to remove prevous .repo files. If you do not have access to the Internet, you can also configure yum to install the software and resolve dependencies from the installation DVD:

    Copy and paste the following to the Linux command prompt:
    cat > /etc/yum.repos.d/dvd.repo <<EOF
    [Install_DVD_base]
    name=Install DVD
    baseurl=file:///mnt/Server
    gpgcheck=1
    enabled=1
    skip_if_unavailable=True
    $(echo)
    [Install_DVD_uek2]
    name=Install DVD UEK2
    baseurl=file:///mnt/UEK2
    gpgcheck=1
    enabled=1
    skip_if_unavailable=True
    EOF
    #
    Then insert the OS installation DVD and mount it:
    cd /
    umount /dev/cdrom # Gnome automounts DVD
    mount -o loop -t iso9660 /dev/cdrom /mnt

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points