Installing Perforce client on Ubuntu

Solution 1:

It's actually pretty easy, you just copy (or move) everything in the bin directory to /usr/bin and everything in the lib directory to /usr/lib (recursively):

tar xvfz p4v.tgz
cd p4v-2010.2.317255
sudo cp bin/* /usr/bin/
sudo cp -r lib/* /usr/lib/

Solution 2:

Don't mess with /usr/bin and /usr/lib

The above is a really bad advice; you'll likely screw up the system or get breakage on future updates.

Instead, follow the official Perforce guide https://www.perforce.com/perforce-packages

wget -qO - https://package.perforce.com/perforce.pubkey | sudo apt-key add -

printf "deb http://package.perforce.com/apt/ubuntu $(lsb_release -sc) release\n" \
    | sudo tee /etc/apt/sources.list.d/perforce.list

sudo apt update && sudo apt install helix-cli

The client tools are installed now.

Run p4v for the GUI.