LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-23-2009, 10:41 PM   #1
cwc
Member
 
Registered: Nov 2004
Location: Tri-Cities, WA
Distribution: Gentoo, Ubuntu, Mint,Fedora
Posts: 71

Rep: Reputation: 16
some yum repo help please


We just started installing fc11 on a closed network. (not on the internet oh well)
Does anyone have a recommendation on how to set up a software repo?
What do we do to the server and what do we do to clients.
I want to do a network install and update over the network.

> I put the fc11 rmps at /var/ftp/fc11/
> Then #createrepo /var/ftp/fc11/
>then I put a file in
File /etc/yum.repos.d/local-repo.repo:

which contained:
[myrepo]
name= local-repo
baseurl=file:///var/ftp/fc11/
enabled=0

I get errors when I #yum install vsftpd
can't find repo.xml files.

Question:
Do I have to

yum localinstall <absolute path to package name/s>

and/or
yum clean all
 
Old 09-24-2009, 12:43 AM   #2
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 317

Rep: Reputation: 70
You have to install "createrepo" and run it. It will create all the appropriate files for you.
 
Old 09-24-2009, 01:11 AM   #3
cwc
Member
 
Registered: Nov 2004
Location: Tri-Cities, WA
Distribution: Gentoo, Ubuntu, Mint,Fedora
Posts: 71

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ArfaSmif View Post
You have to install "createrepo" and run it. It will create all the appropriate files for you.
did it "createrepo /var/ftp/fc11/"
 
Old 09-24-2009, 04:26 AM   #4
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
You need to enable the repository
Code:
yum --disablerepo=* --enablerepo=local-repo install vsftpd
You should probably remove the space in the line
Code:
name= local-repo
also.

Last edited by Glennzo; 09-24-2009 at 04:27 AM.
 
Old 09-24-2009, 04:52 PM   #5
cwc
Member
 
Registered: Nov 2004
Location: Tri-Cities, WA
Distribution: Gentoo, Ubuntu, Mint,Fedora
Posts: 71

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Glennzo View Post
You need to enable the repository
Code:
yum --disablerepo=* --enablerepo=local-repo install vsftpd
You should probably remove the space in the line
Code:
name= local-repo
also.
Solved the problem.

It's all in the syntax and this command:
yum --disablerepo=* --enablerepo=local-repo install vsftpd

I can also install from other clients on the network.

Thank you
 
Old 09-24-2009, 05:03 PM   #6
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
Remember that the disablerepo command was a one time only thing. Next time you use yum the repos that are enabled by default will be used.
 
Old 09-24-2009, 07:35 PM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by Glennzo View Post
Remember that the disablerepo command was a one time only thing. Next time you use yum the repos that are enabled by default will be used.
And the enabled= is where that 'default" is specified. 0=no, 1=yes.
 
  


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 local repo dlee12 Linux - Newbie 1 03-01-2009 12:26 PM
yum local repo dlee12 Linux - Newbie 1 03-01-2009 12:26 PM
yum.conf - extract files from a DVD. How define repo location and what is yum command emuub Linux - Software 2 06-17-2007 07:28 AM
Yum cant seem to connect to any repo Zut50 Fedora 12 03-30-2006 02:44 PM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:12 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