LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-27-2009, 03:57 PM   #1
the-undertaker
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: Disabled
Yet another user overstrained by yum...


Hey guys!
I got a problem with setting up a yum repo on my rhel5.2 machine...

I want to setup the switch-mirror from switzerland in yum for installing software. I did the necessary things in /etc/yum.conf and also created a /etc/yum.repos.d/switch.repo file.

It seems to werk well downloading the repodata from the mirror, but if i execute "yum list available" it just gives me no packages at all...

Here are my config files:

# /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=10
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

---

# /etc/yum.repos.d/switch.repo
[switch]
name=Switch Mirror
baseurl=ftp://mirror.switch.ch/mirror/redhat/linux/enterprise/5Server/en/os/SRPMS/
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1



I google all night long but just didnt found any solution. I hope anyone can help me
 
Old 03-27-2009, 05:45 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Your baseurl does not exist.

may be what you are looking for.

You do realize that SRPMS are source and not binaries? They will not run until you compile/rebuild them.
 
Old 03-28-2009, 04:34 AM   #3
the-undertaker
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: Disabled
Indeed this baseurl exists, as I said It works fine with reading the repodata...

Another helpful Information may be that I disabled the GPG-Check for this "switch"-repo, as I don't find any GPG-Key on the server.

Maybe this would help you:

[root@prometheus ~]# yum list available
Loading "security" plugin
"rhnplugin" plugin is disabled
Running "config" handler for "security" plugin
Yum Version: 3.2.8
COMMAND: yum list available
Installroot: /
Ext Commands:

available
Reading Local RPMDB
Setting up Package Sacks
switch 100% |=========================| 951 B 00:00
Running "exclude" handler for "security" plugin
Setting up Package Sacks
Running "exclude" handler for "security" plugin
[root@prometheus ~]#


And what about these SRPMS? In that repository from switch (ftp://mirror.switch.ch/mirror/redhat...5Server/en/os/), all directorys are empty except "SRPMS", so I thought I just take this dir.
 
Old 03-30-2009, 02:32 AM   #4
the-undertaker
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: Disabled
sorry for pushing

Am I right that there is not really a public repository for red hat enterprise 5?

So how do I get yum to install software from an open repository?
 
Old 03-30-2009, 04:05 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
No, RHEL is a subscription based distro. You have to pay in order to get access to their binaries, but not the srpms. There other repos (atrpms, rpmfusion, rpmforge, etc) for non-base packages.

Centos is RHEL with the logos removed. It is free to download/update and is built from the same source code(minus the logos). The other non-base repos work with Centos too.
 
Old 03-30-2009, 04:15 AM   #6
the-undertaker
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: Disabled
thank you very much for your answer

I just changed the baseurl to the path linking to the centos 5.2 directory on the mirror. seems to work now, very cool! I still can't imagine that centos is the same as redhat, just with the name and the logo striped out of it.

Last edited by the-undertaker; 03-30-2009 at 04:38 AM.
 
  


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
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 05:48 AM
yum check-update as normal user misses lots of updates humbletech99 Red Hat 2 05-09-2008 03:16 AM
YUM Server deny user Ameii83 Linux - Newbie 2 02-27-2007 03:36 AM
Wanted - YUM Update strategy for home user JacekZ Linux - Newbie 3 06-22-2006 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:51 AM.

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
Open Source Consulting | Domain Registration