Skip to content

Instantly share code, notes, and snippets.

@mcrmfc
Last active December 19, 2015 09:39
Show Gist options
  • Save mcrmfc/5934663 to your computer and use it in GitHub Desktop.
Save mcrmfc/5934663 to your computer and use it in GitHub Desktop.
RPM Cheat
rpmbuild -bs <myrpm>.spec
mock -r epel-6-x86_64 --resultdir /home/vagrant/rpmbuild/RPMS --no-clean --no-cleanup-after --rebuild ~/rpmbuild/SRPMS/<myrpm>.src.rpm
cp ~/rpmbuild/RPMS/<myrpm>.noarch.rpm ~/localrepo
createrepo --update ~/localrepo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment