Install PDK on RHEL, SLES, or Fedora

After you configure credentials for PDK, you can download, install, and upgrade it.

Configure credentials

To download, install, or install PDK, which is stored in a protected repository, you must download authenticated packages using either Puppet Core or Puppet Enterprise (PE) credentials. Use the following steps to add credentials to your repository configuration.

In your /etc/yum.repos.d/puppet8-release.repo file, uncomment the username and password lines.

Edit the username and password to add credentials. Use either Puppet Core or PE credentials.

  • Puppet Core: The string literal forge-key as the username and the Puppet Core Forge API key associated with your Puppet Core free or paid user as the password. For more information about the API key, see Purchasing Puppet Core and Accessing Puppet Core for limited use for testing or development.

  • PE: The string literal license-id as the username and your PE License ID as the password. You can find your PE License ID in your PE license file or in the PE console by selecting License from the navigation bar.

Install PDK

Use the following steps to download and install PDK and its dependencies. Make sure you Configure credentials for PDK before updating the package manager. Use the commands appropriate to operating system (OS).

  1. Install the Puppet repository package.

    • RHEL 7

      Copy
       sudo rpm -Uvh https://yum-puppetcore.puppet.com/public/puppet8-release-el-7.noarch.rpm
    • RHEL 8

      Copy
      sudo rpm -Uvh https://yum-puppetcore.puppet.com/public/puppet8-release-el-8.noarch.rpm
    • RHEL 9

      Copy
      sudo rpm -Uvh https://yum-puppetcore.puppet.com/public/puppet8-release-el-9.noarch.rpm
    • SUSE Linux Enterprise Server 15

      Copy
      sudo rpm -Uvh https://yum-puppetcore.puppet.com/public/puppet8-release-sles-15.noarch.rpm
    • Fedora 40

      Copy
      sudo rpm -Uvh https://yum-puppetcore.puppet.com/public/puppet8-release-fedora-40.noarch.rpm
  2. Install the PDK package. Run:

    • Red Hat Enterprise Linux (RHEL) 7

      Copy
      # Before you install, edit /etc/yum.repos.d/puppet8-release.repo
      sudo yum install pdk
    • Red Hat Enterprise Linux (RHEL) 8 and later

      Copy
      # Before you install, edit /etc/yum.repos.d/puppet8-release.repo
      sudo dnf install pdk
    • SUSE

      Copy
      # Before you install, edit /etc/yum.repos.d/puppet8-release.repo
      sudo zypper install pdk
    • Fedora

      Copy
      # Before you install, edit /etc/yum.repos.d/puppet8-release.repo
      sudo dnf install pdk
  3. Open a terminal to re-source your shell profile and make PDK available to your PATH.

Upgrade PDK

To upgrade your PDK installation to the most recent release, Configure credentials for PDK and then run:

  • Red Hat Enterprise Linux (RHEL)

    Copy
    sudo yum upgrade pdk
  • Red Hat Enterprise Linux (RHEL) 8 and later

    Copy
    sudo dnf upgrade pdk
  • SUSE

    Copy
    sudo zypper upgrade pdk
  • Fedora

    Copy
    sudo dnf upgrade pdk