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
  • YUM repositories with packages for Red Hat Enterprise Linux/CentOS
NOTICE: 14 August 2023 is the expiration date of the Perforce packaging key, but this key has been renewed until 11 June 2026 UTC. Package managers do not allow installation with an expired key. To ensure you have the renewed key, follow the first step below for your distribution.

How to Configure APT repositories

 

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

    wget -qO - https://package.perforce.com/perforce.pubkey | gpg --dearmor | sudo tee /usr/share/keyrings/perforce.gpg

    • If you are required to use an older OS that does not support the above method, you can use

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

    • If you are required to use an older version of OpenSSL that does not support TLSv1.2 or higher, please replace https with http in the wget command
  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 [signed-by=/usr/share/keyrings/perforce.gpg] https://package.perforce.com/apt/{os}  {distro}  release

    Where {os} is replaced with ubuntu, and {distro} is replaced by either precise, trusty, xenial, bionic, focal, or jammy. Supported versions can be found at https://package.perforce.com/apt/ubuntu/dists/

    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=https://package.perforce.com/yum/rhel/{version}/x86_64
    enabled=1
    gpgcheck=1

    Where {version} is either 6 for RHEL 6, 7 for RHEL 7, 8 for RHEL 8, or 9 for RHEL 9. Supported versions can be found at https://package.perforce.com/yum/rhel/

    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 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.

  1. The public key can be found here: https://package.perforce.com/perforce.pubkey
  2. To obtain the fingerprint of the public key: 
    • For Ubuntu 14.04/16.04 & RHEL/CentOS 6/7: gpg --with-fingerprint perforce.pubkey
    • For Ubuntu 18.04/20.04 & RHEL/CentOS 8: gpg -n --import --import-options import-show perforce.pubkey
  3. Verify that it matches this fingerprint: E581 31C0 AEA7 B082 C6DC 4C93 7123 CB76 0FF1 8869

How to Install Packages

You can install packages using APT or YUM repositories. Package installation requires sudo or root level privileges.

  1. Run $ sudo apt-get install {package} OR # yum install {package}
  2. Where {package} is located, replace with the name of the package you wish to install, such as 'helix-p4d'.
  3. Use the same command to upgrade installed packages to the newest version.