Results 1 to 25 of 49
-
01-17-2004, 11:29 PM #1Retired Moderator
- 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
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
Step 3: Register a demo account at Red Hat Network (RHN) by issuing the following command.
Code:up2date --nox --register
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
Code:rpm --import /usr/share/rhn/RPM-GPG-KEY
Code:up2date --nox --configure
fileSkipList
removeSkipList
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
Code:up2date --nox -p
Step 7: Update your system now.
Code:up2date --nox -u
Hope this helps
Thanks.
Kindest regards,
ChoonLast edited by choon; 02-23-2004 at 08:16 PM.
-
01-23-2004, 11:02 AM #2Web Hosting Master
- Join Date
- Jan 2004
- Location
- <<Canada>>
- Posts
- 736
Thank you for this
It work for me
-
01-23-2004, 06:37 PM #3Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
Glad it worked for you
-
01-24-2004, 04:53 AM #4Mac User
- Join Date
- Jul 2003
- Posts
- 1,223
Thanks for it choon
-
01-27-2004, 08:56 PM #5KM Carpenter
- 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.
-
01-27-2004, 09:19 PM #6Retired Moderator
- 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.
-
01-27-2004, 09:50 PM #7WHT Addict
- 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.
-
01-27-2004, 09:56 PM #8Retired Moderator
- 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
-
01-27-2004, 10:13 PM #9WHT Addict
- 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
-
01-27-2004, 10:21 PM #10Retired Moderator
- 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
-
01-27-2004, 10:50 PM #11WHT Addict
- 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
-
01-28-2004, 09:43 AM #12Web Hosting Master
- Join Date
- Jan 2004
- Location
- <<Canada>>
- Posts
- 736
This is awesome
-
02-03-2004, 12:48 AM #13Web Hosting Master
- 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.
-
02-03-2004, 01:00 AM #14Retired Moderator
- 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?
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
-
02-03-2004, 06:33 AM #15cholesterol dependent
- Join Date
- Oct 2000
- Location
- Israel
- Posts
- 1,288
What's needed to do this on Fedora?
Thanks.
-
02-03-2004, 06:36 AM #16Retired Moderator
- 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
-
02-03-2004, 07:43 AM #17cholesterol dependent
- 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
-
02-07-2004, 01:48 AM #18Newbie
- Join Date
- Dec 2003
- Posts
- 20
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.
-
02-23-2004, 06:51 AM #19Junior Guru
- Join Date
- Feb 2004
- Posts
- 181
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
Thank you!
-
02-23-2004, 05:51 PM #20Retired Moderator
- 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.
-
03-14-2004, 05:44 AM #21Local tech for Los Angeles
- 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
Last edited by choon; 03-14-2004 at 09:48 AM.
-
03-15-2004, 03:17 AM #22Retired Moderator
- 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
Here are the steps...
Step 1: Check whether yum is installed:
Code:rpm -qa|grep 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
Code:yum update
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
Code:man yum man yum.conf man yum-arch
-
03-17-2004, 05:30 PM #23Junior Guru Wannabe
- 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??
-
03-17-2004, 05:50 PM #24Retired Moderator
- 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??
Code:chkconfig yum off /etc/rc.d/init.d/yum stop
Whereby for up2date, why remove it? It doesn't hurt if you don't use it except for extra disk space
Just my thoughts... ...
-
03-18-2004, 12:18 PM #25Junior Guru Wannabe
- 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