Installation

Before you install, ensure you have read Linux package-based installation, including its prerequisites.

P4 Server is distributed as multiple Linux packages so that you can install only the components you require. The available packages are:

  • p4-server
  • p4-server-control
  • p4-proxy
  • p4-broker
  • p4-cli

The p4-server package installs the core components required to run a P4 Server instance, including:

  • The P4 Server daemon (p4d).

  • The command-line client (p4 and p4-cli).

  • The service controller (p4dctl).

  • Configuration scripts used to set up and manage the service.

At minimum, you must install the p4-server package. To install a different package, substitute its name for p4-server in the commands that follow.

Package installation requires sudo or root-level privileges.

Package signing key

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

  • APT repositories with packages for Ubuntu.

  • YUM repositories with packages for Red Hat Enterprise Linux (including RHEL 10.x) and CentOS.

The Perforce Linux package signing key originally expired on 14 August 2023 and has been renewed until 11 June 2026 (UTC). Package managers do not allow installation using an expired key. To ensure you have the renewed key, follow the instructions at Perforce Packages.

To configure the repository for your Linux OS:

  1. Go to Perforce Packages.

    • For APT (Ubuntu), see "Configure an APT repository".
    • For YUM (Red Hat Enterprise Linux or CentOS), see "Configure a YUM repository".
    • For SUSE Linux Enterprise Server, see "Configure a YUM repository". You might want to use the zypper equivalent to yum.
  2. (Optional:) Verify the public key before installing Perforce packages. See "Verify the public key".

Install the p4-server package

  1. Install the p4-server package by running the command for your operating system.

    • Ubuntu:

      sudo apt-get install p4-server
    • CentOS or Red Hat Enterprise Linux:

      sudo yum install p4-server
    • SUSE Linux Enterprise Server:

      sudo zypper install p4-server
  2. Follow the prompts.

  3. To verify P4 Server, run p4 info. If you see server information in the terminal, the installation was successful.

What's next

The next step is post-installation configuration. See Post-installation configuration.