Instantly share code, notes, and snippets.

@ik5 /makerepo.sh
Last active Dec 21, 2015

Embed
What would you like to do?
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