LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2009, 10:13 PM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
How to install yum?


Machine: Fresh RHEL4U8
Package Status: Minimal
YUM Package Status: Not Installed

I installed yum RPM from internet through RPM utlility.
Code:
[root@localhost ~]# yum install webmin
Insufficient server config - no servers found. Aborting.
[root@localhost ~]# vi /etc/yum.conf
[root@localhost ~]# yum update
Insufficient server config - no servers found. Aborting.
[root@localhost ~]#
Tried doing this:
Code:
[root@localhost ~]# yum updatedb
Insufficient server config - no servers found. Aborting.
[root@localhost ~]# rpm -Uhv http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
Retrieving http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
warning: /var/tmp/rpm-xfer.sMVh7O: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:rpmforge-release       ########################################### [100%]
[root@localhost ~]# yum install webmin
Insufficient server config - no servers found. Aborting.
[root@localhost ~]# yum update

Last edited by your_shadow03; 12-23-2009 at 10:16 PM.
 
Old 12-23-2009, 11:16 PM   #2
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
Can you post the contents of your /etc/yum.conf file?
 
Old 12-24-2009, 12:42 AM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 608

Rep: Reputation: 34
Hi this is what I use when I need to get this done quickly, this will use http to distribute source.

First install yum then do the configuration

1. Server (http)

I: mkdir /RedHat/rpm/
II: copy all the rpms from the DVD or CDs
III: create a file called /etc/httpd/conf.d/yum_file.conf with fallowing content to configure Apache

Alias /yum_file "/RedHat/rpm"

<Directory "/RedHat/rpm/">
Options Indexes Includes FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>

IV: restart httpd

2. Yum Repository config on server

I: cd /RedHat/rpm/
II: createrepo .
III: You need to create a repo config file in /etc/yum.repos.d/ directory. vi /etc/yum.repos.d/rpm.repo with the fallowing entries

[rpm repo]
baseurl=file:///RedHat/rpm
enabled=1

3. Client

/etc/yum.conf

[yum_file]
name = RedHat rpms
baseurl=http://<server where your yum repocitory is>/yum_file
gpgcheck=1
enabled=1

4. from the client side

I: yum list | grep <package name>
II: yum install <package name>


hope this be okay

Regards
 
Old 12-24-2009, 01:48 PM   #4
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Rep: Reputation: 15
first thing first..
wht u wnt to do?
u r trying to configure yum server (or u cn say repo) or jst tryin to update softs n tools...?
plz put ur query more clear...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
Yum Install flvtool2 (and ruby install) Problem athomas Linux - Server 1 10-01-2009 07:04 PM
yum install PHP: yum tries to install duplicate httpd beebopbogo Linux - Software 1 05-26-2009 03:08 AM
I cannot install: yum install gstreamer-plugins-ugly zhemnic Linux - Software 1 02-28-2008 03:45 PM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 01:48 PM


All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration