[FrontPage] [TitleIndex] [WordIndex

This is a read-only archived version of wiki.centos.org

Create Local Repos

If you have downloaded, created, or rebuilt RPM packages locally (as explained in TipsAndTricks/YumAndRPM "Get set up for rebuilding packages while not being root") you may want a place to put them so they are accessible from all the machines on your local net.

Note: For a single package or a stand-alone end-user system, don't go through all the overhead of building a formal NFS export and package repository - just use either:

[root@server1 ~]# yum --nogpgcheck localinstall packagename.arch.rpm

or the older and simpler approach for an unsigned package:

[root@server1 ~]# rpm -Uvh packagename.arch.rpm

One benefit of the rpm based approach, is that a developer can incrementally solve dependencies, and rpm will suggest what the next needed package must provide, and one can build up a 'just enough' solution:

[root@server1 ~]# rpm -Uvh package1.arch.rpm package2.arch.rpm   ...

Use of a yum repo adds additional benefits, as yum can resolve dependencies and automatically satisfy them from available repositories.

The following procedure will explain how to set up an NFS share containing a repository of locally built/rebuilt/downloaded packages and access them in a uniform manner from other systems of the same distro version. One can follow a similar procedure to enable local mirrors of os, updates, etc. avoiding downloading from external mirror servers, and controlling availability of updates to local machines until they have been tested.

Repeat the last three steps for additional clients as required.

This page created and maintained by PhilSchaffner. Other Wiki contributors are invited to make corrections, additions, or modifications.

2023-09-11 07:22