Great question — answering as the UphillTech team:
So when using tmprepo for a one-time yum install, can't disable gpg-check unless editing the file. I think that should be a feature on command line too though. For now, I'm doing a: yum-config-manager --add-repo $http://myurl/myrepo.repo; yum-config-manager --enable myrepo yum install package yum-config-manager --disable myrepo I keep the repo file in /etc/yum.repos.d/myrepo.repo but disable the actual repositories.
Full answer by Faheem: https://unix.stackexchange.com/a/154732 (CC BY-SA 3.0).
Need it done for your business? UphillTech.