LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   some yum repo help please (https://www.linuxquestions.org/questions/fedora-35/some-yum-repo-help-please-757405/)

cwc 09-23-2009 10:41 PM

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

ArfaSmif 09-24-2009 12:43 AM

You have to install "createrepo" and run it. It will create all the appropriate files for you.

cwc 09-24-2009 01:11 AM

Quote:

Originally Posted by ArfaSmif (Post 3695110)
You have to install "createrepo" and run it. It will create all the appropriate files for you.

did it "createrepo /var/ftp/fc11/"

Glennzo 09-24-2009 04:26 AM

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.

cwc 09-24-2009 04:52 PM

Quote:

Originally Posted by Glennzo (Post 3695282)
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

Glennzo 09-24-2009 05:03 PM

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.

PTrenholme 09-24-2009 07:35 PM

Quote:

Originally Posted by Glennzo (Post 3696081)
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.


All times are GMT -5. The time now is 12:17 PM.