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
yum install packages_name
You might export http_proxy first or put proxy setting in /etc/yum.conf
Reference: