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-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 (
p4, provided by thep4-clipackage). -
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
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.-
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
-
-
Follow the prompts.
-
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.