Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to configure YUM in Redhat Linux 5.5

Posted on 2011-03-15
3
Medium Priority
?
1,538 Views
Last Modified: 2012-05-11
I'm trying to configure YUM in Redhat and not sure how to do it. I'm a linux newbie. Here is my yum.conf file output.
Please advise me how to configure .

[root@localhost /]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
0
Comment
Question by:koala-london
3 Comments
 
LVL 12

Expert Comment

by:upanwar
ID: 35144219
First install the createrepo package for your media.

rpm -ivh createrepo

then follow the below given url.

http://linuxtechsupport.blogspot.com/2008/06/configuring-yum-in-rhel5.html
0
 
LVL 36

Expert Comment

by:Seth Simmons
ID: 35144492
What are you trying to configure?  It works out of the box.

0
 
LVL 3

Accepted Solution

by:
Abhishek_Chib earned 2000 total points
ID: 35144955
Hi,

Follow the following steps :


1. [root@test rpm]# cd /etc
[root@test etc]# ll yum*
-rw-r--r-- 1 root root  346 Apr  4  2010 yum.conf

yum:
total 16
drwxr-xr-x 2 root root 4096 Dec 15 01:48 pluginconf.d
-rw-r--r-- 1 root root  490 May 24  2008 yum-updatesd.conf

yum.repos.d:
total 16
-rw-r--r-- 1 root root 2245 Apr 25  2010 CentOS-Base.repo
-rw-r--r-- 1 root root  626 Apr 25  2010 CentOS-Media.repo

2. [root@test rpm]# createrepo -v /home/oracle/rpm ( Create repo where is your RPM saved )

3. [root@test rpm]# rm -rf .oldrepo ( Remove old repo file )

4. [root@test rpm]# cd /etc/yum.repos.d/

5. [root@test yum.repos.d]# hostname
test

6. vi local.repo ( Create local report file )

[rpm]
name=test
baseurl=file:///home/oracle/rpm
gpgcheck=0

9. yum clean all ( to clean old repo info )

All set
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question