RHEL6 Beta: HowTo Use yum Command To Install Packages Without RHN

I‘m testing Redhat Enterprise Linux 6 for our apps. However, RHN do not support beta RHEL 6 software. How do I use yum command to install additional software without using DVD ROM?

You need to enable beta repo by editing /etc/yum.repos.d/rhel-beta.repo file, enter:
# vi /etc/yum.repos.d/rhel-beta.repo
Make sure enable is set to 1:

name=Red Hat Enterprise Linux $releasever Beta - $basearch

name=Red Hat Enterprise Linux $releasever Beta (Optional) - $basearch

Save and close the file. Now, you can access software without RHN for testing purpose under RHEL 6.0 beta.
# yum list | less
# yum search php

Sample outputs:

Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
=============================================================================================================== Matched: php ================================================================================================================
php.x86_64 : PHP scripting language for creating dynamic web sites
php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php-cli.x86_64 : Command-line interface for PHP
php-common.x86_64 : Common files for PHP
php-dba.x86_64 : A database abstraction layer module for PHP applications

You can install php as follows:
# yum install php
Sample outputs:

Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.3.2-3.el6 set to be updated
--> Processing Dependency: php-cli = 5.3.2-3.el6 for package: php-5.3.2-3.el6.x86_64
--> Processing Dependency: php-common = 5.3.2-3.el6 for package: php-5.3.2-3.el6.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.2-3.el6 set to be updated
---> Package php-common.x86_64 0:5.3.2-3.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

 Package            Arch           Version             Repository         Size
 php                x86_64         5.3.2-3.el6         rhel-beta         1.1 M
Installing for dependencies:
 php-cli            x86_64         5.3.2-3.el6         rhel-beta         2.2 M
 php-common         x86_64         5.3.2-3.el6         rhel-beta         515 k

Transaction Summary
Install       3 Package(s)
Downloading Packages:
(1/2): php-cli-5.3.2-3.el6.x86_64.rpm                   | 2.2 MB     00:03     
(2/2): php-common-5.3.2-3.el6.x86_64.rpm                | 515 kB     00:00     
Total                                          284 kB/s | 2.7 MB     00:09     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID f21541eb: NOKEY
rhel-beta/gpgkey                                        | 6.6 kB     00:00 ... 
Importing GPG key 0xF21541EB "Red Hat, Inc. (beta key 2) " from /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
Is this ok [y/N]: y
Importing GPG key 0x897DA07A "Red Hat, Inc. (Beta Test Software) " from /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php-common-5.3.2-3.el6.x86_64                           1/3 
  Installing     : php-cli-5.3.2-3.el6.x86_64                              2/3 
  Installing     : php-5.3.2-3.el6.x86_64                                  3/3 

  php.x86_64 0:5.3.2-3.el6                                                     

Dependency Installed:
  php-cli.x86_64 0:5.3.2-3.el6         php-common.x86_64 0:5.3.2-3.el6        


Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts