Last active
December 21, 2015 06:19
-
-
Save ik5/6263705 to your computer and use it in GitHub Desktop.
creating yum repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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