Title: up2date on RedHat6.2 Subject: I got a free hat for this article # If redhat starts charging for this, choose a different distrobution. # Come on, Microsoft does't even charge for patching their bugs. #============================================================= # RedHat6.2, Needs to be patched...don't they all # The up2date util cant update it self... # to the lates version some times. # # I forgot to write down the urls for all the packages, so go to yahoo, # search for the main name and include the words "rpm rpm" #============================================================= ## When this is done all you need to do to update the system is type manlually: up2date -u #### Alternetly, get updateme, and setup a cronjob: ## rpm -i ftp://linuxserv.uga.edu/pub/unix/linux/updateme-3.5.1-1.noarch.rpm ## updateme --cron #### Alternetly, get autoupdate: http://www.rzuser.uni-heidelberg.de/~x42/autorpm/ ## rpm -i http://www.rzuser.uni-heidelberg.de/~x42/autorpm/perl-libnet-1.0605-2.noarch.rpm ## rpm -i http://www.rzuser.uni-heidelberg.de/~x42/autorpm/autorpm-1.9.8.4-4.noarch.rpm ## Get all packages to get this updated to an automated state. ## ##logcheck-1.1.1 python-xmlrpc-1.2.1-0.6.x.i386.rpm up2date-2.1.7-0.6.x.i386.rpm ##logcheck-1.1.1.tar.gz rhn_register-1.1-1.noarch.rpm up2date-2.1.7-0.6.x.src.rpm ##openssl-0.9.5a-15.src.rpm rpm-3.0.5-9.6x.i386.rpm up2date-gnome-2.1.7-0.6.x.i386.rpm ##python-1.5.2-27.6.x.i386.rpm rpm-build-3.0.5-9.6x.i386.rpm up2date.log.txt ##python-devel-1.5.2-13.i386.rpm rpm-python-3.0.5-9.6x.i386.rpm up2date.txt ## Now thay have to be installed in the correct order: rpm --rebuild openssl-0.9.5a-15.src.rpm rpm -i /usr/src/redhat/RPMS/i386/openssl-0.9.5a-15.i386.rpm rpm -i /usr/src/redhat/RPMS/i386/openssl-devel-0.9.5a-15.i386.rpm rpm -i /usr/src/redhat/RPMS/i386/openssl-perl-0.9.5a-15.i386.rpm rpm -U python-1.5.2-27.6.x.i386.rpm rpm -U python-devel-1.5.2-13.i386.rpm rpm -U python-xmlrpc-1.2.1-0.6.x.i386.rpm rpm -U rpm-build-3.0.5-9.6x.i386.rpm rpm -i rhn_register-1.1-1.noarch.rpm rpm -U /usr/src/redhat/RPMS/i386/up2date-2.1.7-0.6.x.i386.rpm ## rpm has been updated, so we need to update the database. rpm --rebuilddb ## got a register...;) /usr/sbin/up2date --register ## Install the key: /usr/bin/gpg --import /usr/share/rhn/RPM-GPG-KEY ## Run the update to your system. /usr/sbin/up2date -u ## Automate the update stuff with cron rpm -i ftp://linuxserv.uga.edu/pub/unix/linux/updateme-3.5.1-1.noarch.rpm updateme --cron #============================================================= # HOW I USE UP2DATE Options: #============================================================= #Please specify either -l, -u, or package names as command line arguments. #Usage: up2date [options] [package names] # #Available command line options: #-a, --allpackages - make available all packages, not just those # installed on your system # --configure - graphically configure Update Agent options #-d, --download - download packages only, even if configuration says # to install. #-i, --install - install packages, even if configuration says to # download only. #-l, --list - list packages available for retrieval ##-h, --help - this help # --nosig - do not use GPG to check package signatures #-p, --packages - update packages associated with this System Profile # on Red Hat Network #-r, --register - register as an anonymous user with Red Hat Network. # You can register as a full user later by running # rhn_register # --tmpdir= - where to store temporary files / RPMs #-u, --update - update system with all relevant packages #-v, --version - show program version information # #When operating in command line mode, specifying package names as arguments to #the program will attempt to retrieve (and possibly install, based on your #configuration) those packages. Version, release, and architecture details will #be determined by the Update Agent automatically. # #============================================================= # To get on the redhat Network #============================================================= #1. Iniially, you will need to go to www.redhat.com/now and enter the Product ID #2. Create a user name and login that you don't respect mutch. #3. Go to www.redhat.com/network/ and login. #4. Click on "Your Network" #5. register the machine on the redhat network # Add the machinge # Download systemid # cp systemid /etc/sysconfig/rhn/systemid #6. Restart the service: # /sbin/service rhnsd restart # Stopping Red Hat Network Daemon: [FAILED] # Starting Red Hat Network Daemon: [ OK ] # /sbin/chkconfig --level 345 rhnsd on # #you are done.