Yum repo: Difference between revisions

From MDWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 13: Line 13:
  yum install createrepo
  yum install createrepo
  yum install repoview
  yum install repoview


*Edit fstab for the exports (assumes /other/repo exists)
*Edit fstab for the exports (assumes /other/repo exists)
Line 20: Line 21:
  # ADDED FOR REPO
  # ADDED FOR REPO
  /other/repo            /nfs4exports/repo      none    bind            0 0
  /other/repo            /nfs4exports/repo      none    bind            0 0


*Re-load fstab
*Re-load fstab
mount -a


*Edit /etc/exports to define the export
*Edit /etc/exports to define the export
Line 27: Line 31:
  # EXPORT THE YUM REPO TO COMPBIO
  # EXPORT THE YUM REPO TO COMPBIO
  /nfs4exports/repo              152.98.207.62(rw,insecure,no_subtree_check,nohide)
  /nfs4exports/repo              152.98.207.62(rw,insecure,no_subtree_check,nohide)


*Edit /etc/hosts.allow
*Edit /etc/hosts.allow
  vi /etc/hosts.allow
  vi /etc/hosts.allow
  append '152.98.207.62' to the line: ALL:
  append '152.98.207.62' to the line: ALL:


*Restart NFS
*Restart NFS

Revision as of 08:19, 11 August 2007

This page details how to create a yum compliant repo. This is our in house repo for packages that we have had to compile from source.


The repo will be hosted on guava BUT will be exported via NFS to compbio where it will serve the clients.


ON GUAVA

  • Install the required software
    • createrepo: builds the required metadata
    • repoview: generates a static html page of available packages
yum install createrepo
yum install repoview


  • Edit fstab for the exports (assumes /other/repo exists)
    • This maps /other/repo to /nfs4exports/repo
vi /etc/fstab
# ADDED FOR REPO
/other/repo             /nfs4exports/repo       none    bind            0 0


  • Re-load fstab
mount -a


  • Edit /etc/exports to define the export
vi /etc/exports
# EXPORT THE YUM REPO TO COMPBIO
/nfs4exports/repo               152.98.207.62(rw,insecure,no_subtree_check,nohide)


  • Edit /etc/hosts.allow
vi /etc/hosts.allow
append '152.98.207.62' to the line: ALL:


  • Restart NFS

ON COMPBIO

  • edit /etc/fstab
  • reload the mount points
  • hope this works!!!