On *nix systems, you can install PDK either from a downloadable package or from a repository.

By default, PDK installs to /opt/puppetlabs/pdk/

Install from the package

Download and install the PDK package for Red Hat and Debian systems. 

  1. Download the package for your operating system from the PDK download site.
  2. Install the package using the command appropriate to your system:
    OptionDescription
    On RPM-based (such as Red Hat or CentOS) systems: sudo rpm -ivh pdk-<VERSION>-<PLATFORM>.rpm
    On Debian (such as Debian or Ubuntu) systems: sudo dpkg -i pdk-<VERSION>-<PLATFORM>.deb

To update your PDK installation, download and install the latest package.

Install from the repository

Download and install the PDK repository with the package manager for your platform. 

Before you begin

Enable the Puppet platform repositories. See the documentation for your version of Puppet.

CAUTION: If you're installing PDK on a system managed by PE, download and install the package from the Puppet download site to avoid agent version conflicts. See installing PDK packages on Linux for more information. 
  1. Install the package using the command appropriate to your system.
    OptionDescription
    On RPM-based (such as Red Hat or CentOS) systems: sudo yum install pdk
    On Debian (such as Debian or Ubuntu) systems: sudo apt-get install pdk
  2. Open a terminal to re-source your shell profile and make PDK available to your PATH.
To upgrade your PDK installation to the most recent release, run the command for your system:
  • For RPM-based systems, run sudo yum upgrade pdk

  • For Debian systems, run
    sudo apt-get update
    sudo apt-get install pdk
Back to top