LinuxQuestions.org
Help answer threads with 0 replies.
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 04-05-2005, 02:59 PM   #1
ilectrcbob
Member
 
Registered: Jun 2004
Location: Vienna
Distribution: FC 3
Posts: 54

Rep: Reputation: 15
add repository server to yum...


i tried the above mentioned creating an yum.conf file:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d


an fedora.repo file
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://gd.tuwien.ac.at/opsys/linux/fedora/core/$releasever/$basearch/os/
enabled=1
gpgcheck=1

and fedora-updates.repo
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://gd.tuwien.ac.at/opsys/linux/fedora/core/updates/$releasever/$basearch/
enabled=1
gpgcheck=1

but as im runnin "yum updates" following is showing up:
Setting up Update Process
Setting up Repos
Cannot find a valid baseurl for repo: base
?!?! can someone tell me which mistake i hae made?!?!
pls and THX
 
Old 04-05-2005, 03:29 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
I'm not sure where you're located, but I've found it better to use the "mirror list" format. Here's how my yum is set up:
Code:
$ cat  /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
$ ls -w1 /etc/yum.repos.d/
atrpms-stable.repo   
cran.repo
fedora-devel.repo
fedora-updates-testing.repo
fedora-updates.repo
fedora.repo
freshrpms.repo
kde-redhat-stable.repo
livna-stable.repo
newrpms.repo
$ cat /etc/yum.repos.d/fedora.repo
[base]
name=Fedora Core $releasever - $basearch - Base
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
$ cat /etc/yum.repos.d/fedora-updates.repo
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
Anyhow, you might look at the mirror lists and just copy the base URL you need from there.
 
Old 04-05-2005, 04:26 PM   #3
ilectrcbob
Member
 
Registered: Jun 2004
Location: Vienna
Distribution: FC 3
Posts: 54

Original Poster
Rep: Reputation: 15
well i have to delete the # befor baseurl....now its working fine!
THX
 
  


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 repository problems kpachopoulos Fedora 2 07-28-2005 08:03 PM
Yum repository quesiton satimis Fedora 25 04-30-2005 12:19 AM
Creating A Yum Repository SepitvaOra Linux - Newbie 1 04-04-2005 07:54 AM
YUM: Repository already added, not adding again linmix Linux - Software 2 01-16-2005 12:39 PM
yum repository for redhat 9 csfalcon Linux - Software 1 10-20-2004 12:31 PM


All times are GMT -5. The time now is 03:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration