Perforce: Installing and Configuring on Ubuntu

Perforce: Installing and Configuring on Ubuntu

Perforce: Installing and Configuring on Ubuntu

Perforce: Installing and Configuring on Ubuntu

Updated 2 years ago
3 Minute(s) to read
Posted 2 years ago Updated 2 years ago 3 Minute(s) to read 26 comments

In this article I will outline in clear simple steps what is required for installing command-line tooling for Perforce on Ubuntu. These instructions are for those who are wish to install it using APT (apt install etc.), instead of manually installing it themselves by downloading and copying the binaries from the official website to your system's /usr/bin/local directory. This method guarantees that you will always receive updates for as long as you have your apt configured to source the Perforce repository.

apt update && apt upgrade -y


This section outlines some essential steps that must be done before installing Perforce using apt.

Add Trusted Package Repository Keys

The command below does the following.

  1. Performs a HTTP GET request with no additional verbose logging.
  2. Outputs the contents of the response to standard output.
  3. Pipes the content of standard output to gpg, a tool used for encryption, and decodes the file which is typically encoded in base64 (making it transmittable as text).
  4. Stores the contents of the base64 decoded file into a file path that can then be read by apt when searching for packages from the Perforce repository (read next).
wget -qO - | sudo gpg --dearmor -o /usr/share/keyrings/perforce-archive-keyring.gpg

Add Repository Source

This section outlines steps required for adding the Perforce repository as an installable source.

The following commands need to be executed so that apt will be able to pull package information from the official Perforce package repository. You'll note that it references the public key that we downloaded in the previous section; this is used for verifying that packages installed from this source are signed with this key-pair.

echo "deb [signed-by=/usr/share/keyrings/perforce-archive-keyring.gpg]  $(lsb_release -c -s) release" | sudo tee /etc/apt/sources.list.d/perforce.list
sudo apt update

At this point, helix-cli should now be available as an installable package from the Perforce repository. You can check whether the new package repository source is available by running the following command.

Resulting output from running the command apt search, providing that you have followed the steps correctly.

Resulting output from running the command "apt search", providing that you have followed the steps correctly.


This section outlines how to install Helix Core CLI (p4), assuming that you have successfully completed the steps above.

Installing helix-cli is as simple as running the following command.

apt install helix-cli

If everything installed correctly, you should now be able to use the p4 command from the terminal. You can check if it is correctly installed simply by running the command "p4", or by running the following command instead.

command -v p4

The resulting output should be the absolute path to where the command is made available from in the $PATH environment variable.

If you wish to be even more pedantic, you can run the following command which should display the status of the newly installed package.

dpkg -l helix-cli

That's it.

Programming Languages:

Shell Script Bash



Thank you! I value this!
<a href="">thesis</a> example thesis <a href="">thesis help</a> thesis statment

Fantastic facts. Thank you!
<a href="">write my paper</a> lined writing paper <a href="">how to write an apa paper</a> essay writers online
<a href=>buy college essays</a> buy essays online <a href=>pay someone to write my college essay</a> essay for sale
how to be a good writer essay

You definitely made the point!
<a href="">buy term paper</a> parts of a research proposal <a href="">thesis proposal</a> thesis proposal
<a href=>essay writer free trial</a> professional essay writers <a href=>write paper for me</a> write a essay for me
online writing service

Right now it appears like Wordpress is the best blogging
platform out there right now. (from what I've read) Is that what you're using on your blog?

Pretty! This was an extremely wonderful article. Many
thanks for supplying these details.

It's actually a cool and useful piece of information.
I'm happy that you shared this useful info with us. Please stay us up to date like
this. Thanks for sharing.

With thanks, A lot of postings.
<a href="">dissertation proposal</a> phd weight loss <a href="">what is a phd</a> dissertations online
<a href=>writing a thesis statement</a> thesis statement meaning <a href=>thesis template</a> thesis writer
how to write an admissions essay

You actually stated that effectively.
<a href="">thesis binding</a> a thesis <a href="">thesis binding</a> thesis binding

Wonderful posts, Kudos.
<a href="">do my math homework for me</a> coursework <a href="">cpm homework help</a> do my homework
<a href=>paper writers for college</a> how to write an abstract for a research paper <a href=>how to write a reflective paper</a> paper writer online
coursework writing help

Thanks a lot! I appreciate it.
<a href="">online paper writing service</a> pay for research paper <a href="">pay for research paper</a> paper writing service