Perforce's package repositories provide simplified installation of Perforce products and product updates on popular Linux platforms. Perforce currently offers two options:
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 operating system that
does not support this 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 TLS v1.2 or later, replace https
with http
in the wget
command.
Add Perforce's
repository to your APT configuration. Create a file named /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
Replace <os>
with ubuntu
.
Replace <distro>
with precise
, trusty
, xenial
,
bionic
, focal
, or jammy
.
Not all products are available for all operating system/distribution
combinations. To learn more, see Supported
versions.
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.
Add Perforce's packaging key to your RPM keyring:
sudo rpm --import https://package.perforce.com/perforce.pubkey
Create a file named /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
Replace <version>
with:
6
for RHEL 67
for RHEL 78
for RHEL 89
for RHEL 9To learn more, see Supported versions.
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.
To ensure you have the correct public key for installing Perforce packages, verify the fingerprint of the Perforce public key against the provided fingerprint.
Get the fingerprint of the public key.
gpg --with-fingerprint perforce.pubkey
Ubuntu 18.04/20.04 and RHEL/CentOS 8: gpg -n --import
--import-options import-show perforce.pubkey
Verify that the fingerprint matches this value: E581 31C0
AEA7 B082 C6DC 4C93 7123 CB76 0FF1 8869
You can install packages using APT or YUM repositories. Package installation requires sudo or root level privileges.
Run one of the following commands. Replace <package>
with the name of the package to install, such as 'helix-p4d'.
APT: $ sudo apt-get install <package>
YUM: # yum install <package>
Use the same command to upgrade installed packages to the newest version.