Find the answer to your Linux question:
Results 1 to 5 of 5
hi please me , am trying to install some package in my red hat 5 ,via yum but am unable and getting the following errors : [root@ns2 webmail]# yum apache ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    42

    problem when installing package via yum


    hi

    please me , am trying to install some package in my red hat 5 ,via yum but am unable and getting the following errors :

    [root@ns2 webmail]# yum apache install
    Loading "rhnplugin" plugin
    Loading "security" plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, list-security, provides, shell, install, whatprovides, groupinstall, update, repolist, groupupdate, info, search, check-update, list-sec, list, remove, info-sec, clean, info-security, grouperase >
    ----------------------------------
    i have tried to update my yum it gives the below output:


    [root@ns2 webmail]# yum update
    Loading "rhnplugin" plugin
    Loading "security" plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Could not retrieve mirrorlist http://apt.sw.be/redhat/el4/en/mirrors-rpmforge error was
    [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge. Please verify its path and try again

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    This system is not registered with RHN.
    Perhaps you should either register or use a free (as in beer) RHEL clone like Scientific Linux or CentOS?

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,558
    You could change your yum configuration to look for updates in the CentOS and related repositories.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    the first error was you did the command wrong, should be:

    Code:
    yum install packagename
    the second error is an obvious failure to resolve a name. Perhaps you should try:
    Code:
    /etc/yum.repos.d/rpmforge.repo
    mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
    When you use 3rd party repositories, it is highly recommended that you also use yum-priorities.

    base, plugins, updates should be given like 1 or 2. third party repos like rpmforge should be assigned a number like 10, to keep package overlapping from occuring
    linux user # 503963

  5. #5
    Just Joined!
    Join Date
    Jul 2009
    Posts
    20
    for you install apache as below

    yum install httpd*


    it should take you to repositories as mentioned in /etc/yum.repos/***.repo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •