Perforce Packages

Perforce's package repositories allow simplified installation of Perforce products and product updates on popular Linux platforms. Perforce currently offers these two options:

  • APT repositories with packages for Ubuntu/Debian
  • YUM repositories with packages for Red Hat Enterprise Linux/CentOS

How to Configure APT repositories

  1. Add Perforce's packaging key to your APT keyring

    wget -qO - https://package.perforce.com/perforce.pubkey | sudo apt-key add -

  2. Add Perforce's repository to your APT configuration

    Create a file called /etc/apt/sources.list.d/perforce.list with the following line:

    deb http://package.perforce.com/apt/{os} {distro} release

    Where {os} is replaced with either ubuntu or debian, and {distro} is replaced by either precise, trusty, or xenial (for Ubuntu), or wheezy or jessie (for Debian)

    Note: not all products are available on all os/distro combinations.

  3. Run apt-get update

You can now search for and install Perforce packages using your preferred package management tool.

You can also browse the repository and download a Deb file directly: https://package.perforce.com/apt/

How to Configure YUM Repositories

  1. Add Perforce's packaging key to your RPM keyring:

    sudo rpm --import https://package.perforce.com/perforce.pubkey

  2. Add Perforce's repository to your YUM configuration.

    Create a file called /etc/yum.repos.d/perforce.repo with the following content:

    [perforce]
    name=Perforce
    baseurl=http://package.perforce.com/yum/rhel/{version}/x86_64
    enabled=1
    gpgcheck=1

    Where {version} is either 6 for RHEL 6 or 7 for RHEL 7.

    You can now search for and install Perforce packages using your preferred package management tool.

    You can also browse the repository and download an RPM file directly: https://package.perforce.com/yum/

How to Verify the Perforce Public Key

To ensure you have the correct public key for installing Perforce packages, verify the fingerprint of the Perforce public key against the fingerprint shown below.

The public key can be found here:

https://package.perforce.com/perforce.pubkey

To obtain the fingerprint of the public key, run:

gpg --with-fingerprint perforce.pubkey

It should match this fingerprint:

E581 31C0 AEA7 B082 C6DC 4C93 7123 CB76 0FF1 8869

How to Install Packages

Using APT Repositories

$ sudo apt-get install {package}

Using YUM repositories

# yum install {package}

Where {package} is replaced by the name of the package you wish to install, such as 'helix-p4d'.

Use the same command to upgrade installed packages to the newest version.

Package installation requires sudo or root level privileges.