How to install package in RHEL.
1. Modify repository file /etc/yum.repos.d/RHEL-http.repo. if not please create new file.
#: vi /etc/yum.repos.d/RHEL-http.repo
[base] name=RHEL - $releasever - Base baseurl=http://10.10.1.114/rhel/6.1/x86_64/ enable=1 gpgcheck=0
2. search your package by "yum search"
#: yum search -y <words of the package>
3. Install the package
#: yum install -y <package>
EX. we need to install apache, just search some words of the package.
#: yum search httpd Loaded plugins: product-id, subscription-manager Updating Red Hat repositories. base | 4.0 kB 00:00 extra | 1.3 kB 00:00 ================================= N/S Matched: httpd ================================== httpd.x86_64 : Apache HTTP Server httpd-devel.i686 : Development interfaces for the Apache HTTP server httpd-devel.x86_64 : Development interfaces for the Apache HTTP server httpd-manual.noarch : Documentation for the Apache HTTP server httpd-tools.x86_64 : Tools for use with the Apache HTTP Server mod_dav_svn.x86_64 : Apache httpd module for Subversion server mod_dnssd.x86_64 : An Apache HTTPD module which adds Zeroconf support #: yum install -y httpd.x86_64