LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help me in installing packages in Redhat 5 (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-in-installing-packages-in-redhat-5-a-606275/)

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

Thanks

Krkufu

brianmcgee 12-12-2007 07:41 AM

Hi and welcome to LinuxQuestions.org.

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:

Code:

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

Code:

# 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:

Code:

$ cat /etc/yum.repos.d/rpmforge.repo
# Name: RPMforge RPM Repository for Red Hat Enterprise 4 - dag
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl = http://apt.sw.be/redhat/el4/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el4/en/mirrors-rpmforge
#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:

Code:

# rpm -ivh http://url.to/repo.file.com.RPM
Or you can download them from a website:
Code:

# cd /etc/yum.repos.d/ && wget  http://url.to./repofile.repo

krkufu 12-14-2007 08:28 AM

Hello,
 
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...

Bye
krkufu


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