Solved

How to configure YUM in Redhat Linux 5.5

Posted on 2011-03-15
3
1,512 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 35

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LogmeIn using Linux Ubuntu 16.04 6 186
IMAP copying tool 14 78
change password for AD retention policy and Citrix 2 89
ifconfig related commands 6 25
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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.:
Suggested Courses

752 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