Yum repo: Difference between revisions
From MDWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
'''ON GUAVA''' | '''ON GUAVA''' | ||
*Install the required software | *'''Install the required software''' | ||
**createrepo: builds the required metadata | **createrepo: builds the required metadata | ||
**repoview: generates a static html page of available packages | **repoview: generates a static html page of available packages | ||
Line 14: | Line 14: | ||
yum install repoview | yum install repoview | ||
*'''Edit fstab for the exports (assumes /other/repo exists)''' | |||
*Edit fstab for the exports (assumes /other/repo exists) | |||
** This maps /other/repo to /nfs4exports/repo | ** This maps /other/repo to /nfs4exports/repo | ||
Line 22: | Line 21: | ||
/other/repo /nfs4exports/repo none bind 0 0 | /other/repo /nfs4exports/repo none bind 0 0 | ||
*'''Re-load fstab''' | |||
*Re-load fstab | |||
mount -a | mount -a | ||
*'''Edit /etc/exports to define the export''' | |||
*Edit /etc/exports to define the export | |||
vi /etc/exports | vi /etc/exports | ||
# 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 | |||
'''ON COMPBIO''' | '''ON COMPBIO''' |
Latest revision as of 08:23, 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!!!