I want to install an rpm from a repo just once and not have to add it to my yum.repos.d/ directory using the tmprepo plugin. However, I’m blocked on how to install an rpm with no gpg signature. The ‘—nogpgcheck’ option doesn’t work with the tmprepo plugin and I need to manually append ‘pkgs_gpgcheck=false’ to /etc/yum/pluginconf.d/tmprepo.conf.
sudo yum --tmprepo=http://edge.artifactory.example.com:8000/artifactory/chef_rpms/rhel/chef_rpms.repo --nogpgcheck install chef
## ^^ this fails as —nogpgcheck doesn’t work with tmprepo which defaults to gpgcheck unless I manually edit /etc/yum/pluginconf.d/tmprepo.conf
Any way this can be done when calling yum on command line? I don’t want to go about changing a file on the system for a one-time thing. Thanks!
- Faheem
Asked by Faheem
(61 rep)
Sep 9, 2014, 11:57 PM
Last activity: Aug 6, 2025, 10:04 AM
Last activity: Aug 6, 2025, 10:04 AM