Red Hat SATELLITE 5.1.0 RELEASE NOTES Manual de instalación Pagina 176

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 268
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 175
158 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
Next, back up the current repository and create a new one with the createrepo command:
# cd /nfs/rhel5.2/Server
# mv repodata repodata.orig
# createrepo /nfs/rhel5.2/Server
96/2480 - system-config-network-1.3.97-1.el5.noarch.rpm
...
It should take about five minutes to build the new repository data, depending on the number of
RPMs.
You now have a new repository based on the RPMs in /nfs/rhel5.2/Server. Repeat this
procedure any time an RPM (or set of RPMs) change. You can also use this to create multiple
RPM repositories, based on anything you like. For example, you can have a repository named
“test” containing the latest packages from RHN, as well as a “production” repository based on
an official RHEL update. You can then create a .repo file on the client pointing to either
repository, based on the role of that client.
For example, on the server:
# cd /nfs/rhel5.2
# cp -a Server Server.production
# cp -a Server Server.test
Now, any time you update an RPM in /nfs/rhel5.2/Server.test/, run createrepo on that
directory. On the client, in the /etc/yum.repos.d/ directory you can have:
/etc/yum.repos.d/rhel5.2.production.repo:
[RHEL5.2]
name=RHEL 5.2 production
baseurl=file:///nfs/rhel5.2/Server.production/
Or you can have:
/etc/yum.repos.d/rhel5.test.repo:
[RHEL5.2]
name=RHEL 5.2 test
baseurl=file:///nfs/rhel5.2/Server.test/
Note that this method requires maintaining separate copies of each directory of RPMs, which
can fill the /nfs directory on the controller quickly. Red Hat provides a separate product
named Satellite which maintains a single tree, while managing the RPM version differences.
The Satellite provides other features similar to RHN, as well; for more information, see:
https://www.redhat.com/rhn/rhndetails/architecture/
Vista de pagina 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 267 268

Comentarios a estos manuales

Sin comentarios