Is the setup of partial yum repo possible ?

Asked By 10 points N/A Posted on -
qa-featured

Hello,

Is the setup of partial yum repo possible?

I need to have this setup with some combination of local rpm’s and normal scientific Linux repo on my NFS server?

SHARE
Answered By 0 points N/A #159229

Is the setup of partial yum repo possible ?

qa-featured

You can setup a partial yum repo. Simply follow the steps below:

1. Under the NFS server, make a directory such as use /export/localrepo.

2. Ensure that createrepo is installed on the NFS server: yum install createrepo

3. Copy your rpm's on the same directory under the NFS server. You can copy it on a directory within that directory or a link that should be visible to the clients when NFS is mounted. It is simpler to do the usual way and thrash everything on that directory.

4. Still on the NFS server, make a yum headers for that dir. Use yum-arch -I /export/localrepo for S.L. 3.0.x clients and createrepo /export/localrepo for S.L. 4.x clients.

5. Under the client side, mount the nfs directory: mount myserver:/export/localrepo /mnt/repo

6. Under the client, insert the local repo on the yum settings.

For S.L. 3.0.x:

[localrepo]

Name=local repo

Baseurl=file:///mnt/repo/

For S.L. 4.x:

[localrepo]

Name=local repo

Baseurl=file:///mnt/repo/

Enabled=1

7. On the clients again, simply utilize yum the usual way. Yum update, list or install.

https://access.redhat.com/solutions/1355683

Related Questions