Installation
This topic assumes you have read Linux package-based installation, including its prerequisites.
The P4 Server is divided into multiple packages, so you can install the components you need. The component package names are:
p4-server
p4-server-control
p4-proxy
p4-broker
p4-cli
The p4-server
package installs the main component of a
P4
service, p4d
, as well as the command line
interface (p4, which is distributed as p4-cli), the service controller (p4dctl), and a configuration script to set
them up.
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.
-
Follow the instructions at Perforce Packages.
- For APT (Ubuntu), see "How to Configure APT repositories".
- For YUM (Red Hat Enterprise Linux or CentOS), see "How to Configure YUM repositories".
- For SUSE Linux Enterprise Server, see "How to Configure YUM repositories". You might want to use the zypper equivalent to yum.
-
Install the
p4-server
package by running the command for your operating system.-
For Ubuntu:
sudo apt-get install
p4-server
-
For CentOS or Red Hat Enterprise Linux:
sudo yum install
p4-server
-
For SUSE Linux Enterprise Server:
sudo zypper install
p4-server
-
-
Follow the prompts.