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-serverp4-server-controlp4-proxyp4-brokerp4-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 (
p4andp4-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.
To configure the repository for your Linux OS:
-
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.
- (Optional:) Verify the public key before installing Perforce packages. See "Verify the public key".
Install the p4-server package
-
Install the
p4-serverpackage 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
-
-
Follow the prompts.
-
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.