Skip to content

Instantly share code, notes, and snippets.

@ik5
Last active December 21, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ik5/6263705 to your computer and use it in GitHub Desktop.
Save ik5/6263705 to your computer and use it in GitHub Desktop.
creating yum repo
#!/bin/bash
destdir=$1
: ${destdir:=$(pwd)} # default value if $1 is not set
for ver in 5 6 ; do
for arch in SRPMS x86_64 ; do
pushd ${destdir}/${ver}/${arch} > /dev/null 2>&1
createrepo --update .
popd > /dev/null 2>&1
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment