-
-
Save shaposhnikoff/952f1577144ee5d7b6abdb2c6aaf04ef to your computer and use it in GitHub Desktop.
Script to create rpm repository metadata
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/sh | |
# This is for Redhat 64 bit versions of Linux with `createrepo` installed. If you | |
# do not have createrepo, you can install it with: | |
# yum install -y createrepo | |
# Change DESTDIR path to RPMS directory of your repo | |
DESTDIR="/var/www/repo/rhel/6" | |
for ARCH in x86_64 | |
do | |
pushd ${DESTDIR}/${ARCH} >/dev/null 2>&1 | |
createrepo . | |
popd >/dev/null 2>&1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment