The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

YUM ....Please assist !!!

Discussion in 'General Discussion' started by furquan, Jan 19, 2011.

  1. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    I am using [Red Hat Enterprise Linux ES release 4] on one of my servers and i need to install yum on it, I have installed all the required pacakges to get yum up and running, namely :-

    a) libsqlite-3.2.1-1.i386.rpm
    b) python-elementtree-1.2.6-7.el4.rf.i386.rpm
    c) python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
    d) python-urlgrabber-2.9.6-1.2.el4.rf.noarch.rpm
    e) smart-0.42-1.el4.rf.i386.rpm
    f) sqlite-2.8.17-1.el4.rf.i386.rpm
    g) yum-2.4.2-0.4.el4.rf.noarch.rpm

    But after all this when i issue the command "yum update", i get this error :-

    Can any one please assist ?

    Thank you,
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I recommend using official RHEL or CentOS RPMs instead of RPMs from a third-party repository like RPMforge.

    Have you tried using up2date to install YUM? If yes, what was the result? Where there any specific errors?
     
  3. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    ahhh..No i have not used up2date to install yum...what could be the exact syntax for the same ?

    Thank you Don :)
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I recommend referring to the manual "man" page for up2date, which should be accessible using the following command (via SSH access):
    Code:
    # man up2date
     
  5. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    very true :) i will do it ,

    Thank you for the suggestion
     
  6. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    After removing the RPMforge RPMs, I would try one of the following commands to install YUM; this is assuming that the OS update repository has YUM available:
    Code:
    # up2date -i yum
    # /scripts/ensurerpm yum
    The ensurerpm script simply uses your OS update mechanism, such as up2date (or yum), to locate and install packages. If up2date is unable to locate and install YUM, it may require manually downloading the RPMs (via wget), perhaps from a CentOS mirror. Any RPMs that are manually downloaded must match the system architecture, which can be seen via the following command:
    Code:
    # uname -a
     
    #6 cPanelDon, Jan 20, 2011
    Last edited: Jan 20, 2011
  7. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Thank you once agin Don :), tips like these help up in going long way :P
     
  8. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    There is a catch here...I have installed all the above mentioned softwares, but when i do a "rpm -e <package name>" the server says it is not installed, but when i do a query "rpm -q <package name>" it shows me the package detail....

    What could be causing this ?
     
  9. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Is the RPM filename extension, like .rpm, being used with either of the two commands? If yes, try limiting the package name to just "yum-2.4.2-0.4.el4.rf.noarch" or "yum-2.4.2-0.4.el4.rf" without ".rpm" at the end.
     
  10. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    ok, i shall do that and will revert back....
     
  11. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Hello Don :

    I tried to use up2date to install yum, but i get this error :-

    How do i get this done :(

    any assistance.
     
  12. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    You can do installation of yum using rpms. You may have to install many of the dependencies. Also have a check on the arch( whether it is 32 or 64 bit) and install rpm's accordingly.
     
  13. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Hello Varada ,

    Thank you so much for pointing that out...how silly of me, i thought i was on a 32 bit :(

    But i am on 64 :P

    Thank you
     
  14. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    You are welcome! Try again and post your result!
     
Loading...

Share This Page