Installation

This topic assumes 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, provided by the p4-cli package).

  • The service controller (p4dctl).

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

At minimum, you need to install the p4-server package. To install a different package, substitute its name for p4-server in the commands below.

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 currently offers two options:

  • APT repositories with packages for Ubuntu

  • YUM repositories with packages for Red Hat Enterprise Linux/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.

    • For Ubuntu, run:

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

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

      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 has been a success.

What's next

The next step is to run the post-installation script. For more information, see Post-installation configuration.