Shell Scripts

Home  |  Linux  |  Scripts

Scripting Books & Guides

Advanced Bash-Scripting Guide
  (or from my site)

Bash Beginners Guide
  (or from my site)

mkrepos

  Description


  This script is used to create YUM repositories out of directories containing RPMs. It uses createrepo to build the repository and repoview to build an html view of the repository that describes and links to the contents of the repository.

  It is designed to be run from within a directory that contains subdirectories that will be the individual repositories. It by default will turn all subdirectories of directory into repositories that do not have a file name "norepo" in them. (To exclude a directory from being automatically turned into a YUM repository place an empty file into that directory named 'norepo'.) The user is also prompted during the script whether or not to automatically build repositories for all sub directories or to step through each directory one at a time and be prompted whether or not to build a repositoy for that individual directory.

  Before updating existing repositories it deletes the existing html document and repository metadata. The script does however check to see if createrepo and repoview are installed before atempting to do anything.

  Version Info

  Version: 2.2.0
  Modification Date: 2006-12-30
  Maintainer(s): Ron Terry - ron (at) pronetworkconsulting (dot) com

  Downloads
      mkrepos

 

©Ron Terry

All original documents published on this site are published under the GNU FDL.
Permission is granted to copy, distribute and/or modify these documents under the terms of the GNU Free Documentation License, Version 1.2 published by the Free Software Foundation.