Does Red Hat Enterprise Linux 7 anaconda has `nogpgcheck` option for it's repo parameter?

Solution Verified - Updated -

Issue

  • If the following repo lines are mentioned in the kickstart file,
repo --name="mariadb100" --baseurl=http://example/yum/mariadb/7/7Server/x86_64/mariadb100/ --install
  • It creates the following file /etc/yum.repos.d/mariadb100.repo with gpgcheck=1
[mariadb100]
name=mariadb100
enabled=1
baseurl=http://repohost/yum/mariadb/7/7Server/x86_64/mariadb100/
  • How can one create a yum repo with GPG checking disabled within a kickstart script? Is it possible to add a --nogpgcheck or similar flag?

Environment

  • Red Hat Enterprise Linux 7
  • Kickstart

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.