LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 11:41 PM   #1
cwc
Member
 
Registered: Nov 2004
Location: Tri-Cities, WA
Distribution: Gentoo, Ubuntu, Mint,Fedora
Posts: 62

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, 01:43 AM   #2
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: always back to Fedora
Posts: 241

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

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, 05:26 AM   #4
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 393

Rep: Reputation: 47
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 05:27 AM.
 
Old 09-24-2009, 05:52 PM   #5
cwc
Member
 
Registered: Nov 2004
Location: Tri-Cities, WA
Distribution: Gentoo, Ubuntu, Mint,Fedora
Posts: 62

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, 06:03 PM   #6
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 393

Rep: Reputation: 47
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, 08:35 PM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
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


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 local repo dlee12 Linux - Newbie 1 03-01-2009 01:26 PM
yum local repo dlee12 Linux - Newbie 1 03-01-2009 01: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 08:28 AM
Yum cant seem to connect to any repo Zut50 Fedora 12 03-30-2006 03:44 PM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 04:49 PM


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