-   Linux - Newbie (
-   -   Help me in installing packages in Redhat 5 (

krkufu 12-12-2007 07:23 AM

Help me in installing packages in Redhat 5
Hello All,

I krkufu,& as i am new to linux, i installed Redhat 5 in my PC. I don't know how to create a Client repository, server repository, group repository. please help in creating repository so that i can able to install the packages.

So please help me in creating repositories & installation of new packages



brianmcgee 12-12-2007 07:41 AM

Hi and welcome to

In RHEL you usually install software from Red Hat Network for which you need an active subscription.

With the following command you are able to register your system:


# rhn_register
Then you will be able to install software with yum:


# yum install packagename
If you do not have an Red Hat subscriptions you may have a look at Fedora or CentOS. There you may install packages from public yum repositories.

To add new repositories you have to place .repo files in /etc/yum.repos.d.

A repo file may look like this example:


$ cat /etc/yum.repos.d/rpmforge.repo
# Name: RPMforge RPM Repository for Red Hat Enterprise 4 - dag
# URL:
name = Red Hat Enterprise $releasever - - dag
#baseurl =$basearch/dag
mirrorlist =
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

Some repositories are packaged as RPM so you can import them with:


# rpm -ivh
Or you can download them from a website:

# cd /etc/yum.repos.d/ && wget

krkufu 12-14-2007 08:28 AM

Thanks for sending this bunch of information. As i don't have a activation serial key, i will use those steps on either Fedora or cent OS.

Once again thanks... in case if i face a problem, i will definitely get back to get the help...


All times are GMT -5. The time now is 11:50 PM.