Solved

How to configure YUM in Redhat Linux 5.5

Posted on 2011-03-15
3
1,493 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 34

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 500 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

757 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now