Solved

How to configure YUM in Redhat Linux 5.5

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

​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…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

808 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