Installing Perforce Server 15.1 on Linux
Without OS-specific packages
- Open a web browser.
- Navigate to http://www.perforce.com/downloads.
- Click the Select button.
- Find the section titled P4D: Server.
- Click the Accept and Continue button in that section.
- Click the Clients tab.
- Find the section titled P4: CommandLine Client.
- Select your operating system from the dropdown menu in that section.
- Click the Accept and Continue button in that section.
- Open a terminal window.
-
Make the downloaded files executable:
chmod +x _downloads_path_/p4*
-
Move the files into a common execution path:
sudo mv _downloads_path_/p4* /usr/local/bin/
With OS-specific packages
-
Add the Perforce package repository.
For RPM packages, create a file called
/etc/yum.repos.d/perforce.repo
with the following content:[perforce] name=Perforce baseurl=http://package.perforce.com/yum/rhel/6/x86_64/ enabled=1 gpgcheck=1
For the Debian package, create a file called
/etc/apt/sources.list.d/perforce.sources.list
with the following line:deb http://package.perforce.com/apt/ubuntu precise release
-
Import the Perforce package signing key.
Run one of the following:
-
For RPM (run this command as root):
# rpm --import http://package.perforce.com/perforce.pubkey
-
For Debian:
$ wget -q http://package.perforce.com/perforce.pubkey -O- | sudo apt-key add - $ sudo apt-get update
For information about how to verify the authenticity of the signing key, see http://answers.perforce.com/articles/KB_Article/Public-Key-for-Installation-Packages.
-
-
Install the perforce-server package.
-
For CentOS and Red Hat, run (as root):
# yum install perforce-server
-
For Ubuntu, run:
$ sudo apt-get install perforce-server
-
-
Install the perforce-cli package.
-
For CentOS and Red Hat, run (as root):
# yum install perforce-cli
-
For Ubuntu, run:
$ sudo apt-get install perforce-cli
-