LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-29-2009, 05:44 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
Making Yum work with Remote Repository


I have a Fedora 9 Machine and All I want is yum to install packages automatically through one of teh remote repository.
Whenever I do :
Code:
wget ftp://130.239.17.6/fedora/releases/9/Fedora/i386/os/Packages/*.rpm
It works fine. But What I want is My Machine should automatically retrieve the package from this Repo whenever I run
Code:
#yum install maven
Under /etc/ I can see lots of yum stuffs .
like yum, yum.repos.d and yum.conf.
I tried adding a line like this:
Code:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=2
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
baseurl=ftp://130.239.17.6/fedora/releases/9/Fedora/i386/os/Packages/
enabled=1
gpgcheck=0
But That dint work.

Do I need to make any modification in yum.repos.d and yum directory too.
Pls Suggest?

Last edited by your_shadow03; 09-29-2009 at 05:46 AM.
 
Old 09-29-2009, 08:13 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi,

Its better to just create a file in /etc/yum.repos.d as follows:

Code:
cat << 'EOF' > /etc/yum.repos.d/myfedora.repo
[myfedora]
name=My Fedora $releasever - $basearch
baseurl=ftp://130.239.17.6/fedora/releases/$releasever/Fedora/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
EOF
If you're mirroring the official Fedora repo you should probably enable gpgcheck

No need to modify /etc/yum.conf

cheers,

kbp
 
Old 09-29-2009, 08:47 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Just FYI, F9 is no longer supported or updated and the archives will go away soon. Can I suggest you get eg F11 or any other current distro of your choice.
If you want long term updates & are happy with RH style systems, try Centos.
 
Old 09-30-2009, 12:01 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
I got this error:

Code:
[root@Innova yum.repos.d]# yum update
ftp://130.239.17.6/fedora/releases/9/Fedora/i386/os/Packages/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: extras. Please verify its path and try again
I deleted rest of Reposiotryunder /etc/yum.repos.d/
Pls Suggest
 
  


Reply



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 Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
yum repository sumer Linux - Enterprise 4 01-18-2009 11:56 PM
YUM repository Mr.J Linux - Newbie 3 06-27-2008 01:18 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM
Making One's Own Repository gizza23 Fedora 2 12-04-2006 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:47 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
Open Source Consulting | Domain Registration