How to use yum to update RHEL5 servers

Objective: use yum to install/update packages through RHN for RHEL5 servers

Steps:

  • user rhnreg_ks to register the server with RHN
rhnreg_ks --profilename=my_server_name --username=myusername --password=password [--proxy=http://10.0.0.1:8080]
 
note: you must make sure your server is able to reach Internet, either directly or through proxy server