Page 1 of 2 12 LastLast
Results 1 to 25 of 49
  1. #1
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889

    Updating your Red Hat System using RHN up2date

    Hi everyone,

    These are the steps that I used to keep my Red Hat Linux servers up2date. These steps are suitable for those people running plain Red Hat Linux with/without WHM/Cpanel. Whereby if you are using Plesk or any other control panels, you can still use up2date to update your system if you know what are those packages to be skipped to refrain causing any headaches or problem with the control panel.

    Step 1: Gain root access under SSH to your server.

    Step 2: Check whether up2date is current in your system or whether it is installed:
    Code:
    rpm -qa|grep up2date
    If you are using Red Hat Linux 9 and the version of up2date is not >= 3.1.23.2-1, kindly please visit the below URL to get and update/install the latest available version of up2date for your system:
    https://rhn.redhat.com/errata/RHSA-2003-267.html

    For Red Hat Linux 9, you can use the following command to update your up2date:
    Code:
    wget -c http://updates.redhat.com/9/en/os/i386/up2date-3.1.23.2-1.i386.rpm -P /tmp
    rpm -Uvh /tmp/up2date-3.1.23.2-1.i386.rpm
    rm /tmp/up2date-3.1.23.2-1.i386.rpm
    If your version of up2date is lesser than what is stated above, you will encountered SSL Connection Errors.

    Step 3: Register a demo account at Red Hat Network (RHN) by issuing the following command.
    Code:
    up2date --nox --register
    I would recommend that you use your main server allocated IP address as your new demo Red Hat Network username as this is the most simplest way for you to remember. Complete the registration form and remember your new demo RHN username and password. After you have registered with RHN, you will be shown the following message:
    Your Update Agent options specify that you want to use GPG.

    To install the key, run the following as root:

    rpm --import /usr/share/rhn/RPM-GPG-KEY
    Step 4: Install your GPG key by issuing the following command as it is shown in the previous step.
    Code:
    rpm --import /usr/share/rhn/RPM-GPG-KEY
    Step 5: Modify your up2date configuration setting.
    Code:
    up2date --nox --configure
    Remove by entering C after choosing the option of the following if you want to use up2date to update your system kernel while running up2date --nox -u as root or otherwise you can leave it as it is.
    fileSkipList
    removeSkipList
    After editing, hit ENTER key to exist if you read at the message at the end of your configuration setting.

    For Red Hat Linux 9, here is an example configuration after editing:
    Code:
    0.  debug              No
    1.  rhnuuid            XXXXX COMMENTED OUT XXXXX
    2.  isatty             Yes
    3.  showAvailablePacka No
    4.  depslist           []
    5.  networkSetup       Yes
    6.  retrieveOnly       No
    7.  enableRollbacks    No
    8.  pkgSkipList        []
    9.  storageDir         /var/spool/up2date
    10. adminAddress       ['root@localhost']
    11. noBootLoader       No
    12. serverURL          https://xmlrpc.rhn.redhat.com/XMLRPC
    13. fileSkipList       []
    14. sslCACert          /usr/share/rhn/RHNS-CA-CERT
    15. noReplaceConfig    Yes
    16. noReboots          None
    17. useNoSSLForPackage No
    18. systemIdPath       /etc/sysconfig/rhn/systemid
    19. enableProxyAuth    No
    20. retrieveSource     No
    21. versionOverride
    22. headerFetchCount   10
    23. networkRetries     5
    24. enableProxy        No
    25. proxyPassword
    26. noSSLServerURL     http://xmlrpc.rhn.redhat.com/XMLRPC
    27. keepAfterInstall   No
    28. proxyUser
    29. removeSkipList     []
    30. useGPG             Yes
    31. gpgKeyRing         /etc/sysconfig/rhn/up2date-keyring.gpg
    32. httpProxy
    33. headerCacheSize    40
    34. forceInstall       No
    35. noReboot           No
    Step 6: Update your system profile with RHN.
    Code:
    up2date --nox -p
    No harm to update your system profile although you just registered.

    Step 7: Update your system now.
    Code:
    up2date --nox -u
    You should run up2date --nox -u regularly (at least once a week) in order to continue to keep your system up2date or whenever you notice there is an errata package release/update.

    Hope this helps

    Thanks.

    Kindest regards,
    Choon
    Last edited by choon; 02-23-2004 at 08:16 PM.

  2. #2
    Join Date
    Jan 2004
    Location
    <<Canada>>
    Posts
    736
    Thank you for this

    It work for me

  3. #3
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Glad it worked for you

  4. #4
    Thanks for it choon

  5. #5
    Join Date
    Feb 2003
    Location
    Albany, New York
    Posts
    3,026
    I am on 56k. How long will it take?
    Last edited by SoftWareRevue; 01-31-2004 at 06:47 AM.

  6. #6
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Originally posted by Carp
    I am on 56k. How long will it take?
    ???
    Your connection doesn't related to update packages from your server with RHN much. The difference I can see is only the speed to get your typing of commands sent over and getting response to/from your server via SSH... that's all.

  7. #7
    Join Date
    Nov 2003
    Location
    Cleveland, OH
    Posts
    152
    i try to update up2date by running this:

    rpm -Uvh up2date-3.1.23.2-1.src.rpm

    It says 100% done, but it doesnt update

    when i try to install rpms too, does the same thing, but doesnt install. what am i doin wrong

    sorry i'm a freebsd guru, havnt been on linux in almost 6 years.

  8. #8
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Not the up2date-3.1.23.2-1.src.rpm please.
    It should be ended up with .i386.rpm not SRPM = src.rpm
    So, download the correct rpm and continue please

  9. #9
    Join Date
    Nov 2003
    Location
    Cleveland, OH
    Posts
    152
    oh. oops

    well the i386 ones arent named like in the guide up above, so it was confusing to which one i was supposed to download

  10. #10
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    SRPM rpm is needed if you need to rebuild rpm... like: rpmbuild --rebuild whatever.src.rpm
    Sorry, I will update this guide with more easy to follow when I have time

  11. #11
    Join Date
    Nov 2003
    Location
    Cleveland, OH
    Posts
    152
    no problem, worked great, thanks for the guide and the little extra kick in the pants

  12. #12
    Join Date
    Jan 2004
    Location
    <<Canada>>
    Posts
    736
    This is awesome

  13. #13
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    794
    I noticed that you mentioned above that you may use your Control Panel to update these things, however, I've heard it's best to let the control panel do this. Is this true?

    <edit>signature removed</edit>
    Last edited by choon; 02-09-2004 at 09:20 PM.

  14. #14
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Originally posted by 93.3
    I noticed that you mentioned above that you may use your Control Panel to update these things, however, I've heard it's best to let the control panel do this. Is this true?
    For updating system OS softwares... it is always good to update using the feature provided by the vendor which in this case is up2date from RHN.
    I didn't mention anything related to control panel to do the updating in this thread. I just mentioned about you can use up2date for certain control panels. If you are using WHM/cPanel... well... it won't update your kernel anyway but using up2date can upgrade your kernel. So in short, do not depend on a control panel to do the updating of your server to keep it up to date... IMO

    Hope this helps

  15. #15
    Join Date
    Oct 2000
    Location
    Israel
    Posts
    1,288
    What's needed to do this on Fedora?

    Thanks.

  16. #16
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Just issue up2date --nox -u to update your system as you don't have to register with RHN if you are using Fedora. I might be wrong though but when I am using Fedora... I didn't register at all

    Hope this helps

  17. #17
    Join Date
    Oct 2000
    Location
    Israel
    Posts
    1,288
    Originally posted by choon
    Just issue up2date --nox -u to update your system as you don't have to register with RHN if you are using Fedora. I might be wrong though but when I am using Fedora... I didn't register at all

    Hope this helps
    I hope so too. Thanks Choon, I'll give it a try.

  18. #18
    YAY! It worked.

    Good onya mate for helping us out with this

    <edit>signature removed</edit>
    Last edited by choon; 02-09-2004 at 09:20 PM.

  19. #19
    Hi

    This is wonderful.

    While registering, i saw this 2 kernel packages within the up2date.
    kernel-2.4.20-30.9
    kernel-2.4.20-8
    Does that means it would not updateour kernel to the latest version you've posted, 2.4.25?

    Thank you!

  20. #20
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Red Hat back ported those known security patches to version 2.4.20 so you can either use up2date to update your kernel if you have no experience about compile your kernel from source.

  21. #21
    Join Date
    Feb 2003
    Location
    Panorama City, CA
    Posts
    2,581
    can u do a how-to for fedora now

    up2date --nox -u seemed to work right off the bat, but in teh gnome gui (ima noob, so i dont know what to call it) i stoped before i had to register the system then when i got the networking setup right, in ssh i typed

    up2date --nox --register

    nothing happened,

    then i typed

    up2date --nox -p

    i said to me your not on RH Networks so no need to refresh your hardware

    then i typed

    up2date --nox -u

    then it did all its header stuff and seems to be going in the right area/way

    BUT then this BS came up

    Code:
    Traceback (most recent call last):
      File "/usr/sbin/up2date", line 1198, in ?
        sys.exit(main() or 0)
      File "/usr/sbin/up2date", line 776, in main
        fullUpdate, dryRun=options.dry_run))
      File "/usr/sbin/up2date", line 1061, in batchRun
        batch.run()
      File "up2dateBatch.py", line 58, in run
      File "up2dateBatch.py", line 99, in __findPackagesToUpdate
      File "packageList.py", line 521, in getPackagesToInstall
      File "packageList.py", line 550, in __skipPackages
      File "packageList.py", line 571, in __skipFiles
      File "packageList.py", line 610, in buildHeaderList
      File "headers.py", line 37, in __getitem__
      File "headers.py", line 42, in __retrievePackage
      File "rpcServer.py", line 112, in doCall
      File "repoDirector.py", line 31, in getHeader
      File "rpmSource.py", line 210, in getHeader
      File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line 96, in getHeader
        hdrBuf = fh.read()
      File "/usr/lib/python2.2/gzip.py", line 156, in read
        self._read(readsize)
      File "/usr/lib/python2.2/gzip.py", line 210, in _read
        self._read_eof()
      File "/usr/lib/python2.2/gzip.py", line 245, in _read_eof
        raise ValueError, "CRC check failed"
    ValueError: CRC check failed
    <edit>signature removed</edit>
    Last edited by choon; 03-14-2004 at 09:48 AM.

  22. #22
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    I have no idea why sometimes getting that error even myself also get that similar error. This is what I have done:
    Code:
    cd /var/spool/up2date
    rm -f *
    up2date --nox -u
    If it hang there for a very long time or like giving you I/O error... then stop using up2date for Fedora. Actually I changed to use Yum for Fedora instead
    Here are the steps...

    Step 1: Check whether yum is installed:
    Code:
    rpm -qa|grep yum
    If it is installed, then proceed to Step 2 or otherwise use the following command to download and install yum:
    Code:
    wget -c http://download.fedora.redhat.com/pub/fedora/linux/core/updates/1/i386/yum-2.0.5-1.noarch.rpm \
    -P /tmp
    rpm -ivh /tmp/yum-2.0.5-1.noarch.rpm
    rm -f /tmp/yum-2.0.5-1.noarch.rpm
    Step 2: Run yum to update:
    Code:
    yum update
    That's it
    If you want to install a package like gcc and its dependencies, you can use yum to install for you instead of up2date:
    Code:
    yum install gcc
    To learn more about yum, use the following command to read its man:
    Code:
    man yum
    man yum.conf
    man yum-arch
    Hope this helps

  23. #23
    Join Date
    Mar 2004
    Location
    LA
    Posts
    50
    yum is cool, but i dont like that it auto updates during the night time.

    as for up2date, should u remove it??

  24. #24
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Originally posted by LynxPrime
    yum is cool, but i dont like that it auto updates during the night time.

    as for up2date, should u remove it??
    You can turn it off I believe as something like:
    Code:
    chkconfig yum off
    /etc/rc.d/init.d/yum stop
    I might be wrong as I am not sure whether it is default to start auto-update whenever your system is booted up as currently I am unable to check in my desktop as now using/booted to FreeBSD

    Whereby for up2date, why remove it? It doesn't hurt if you don't use it except for extra disk space

    Just my thoughts... ...

  25. #25
    Join Date
    Mar 2004
    Location
    LA
    Posts
    50
    true.

    i liked having the going on the web and see that blue check mark makes me feel kinda safe

Page 1 of 2 12 LastLast

Posting Permissions

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