You can simply download the python script and install it somewhere, as described here:
https://git.wiki.kernel.org/index.php/GitP4#Adding_git-p4_to_an_existing_install
I found that I had to put git -p4 in / usr / lib / git -core on my Ubuntu system so that it was called by git:
$ sudo mv /path/to/git-p4.py /usr/lib/git-core/git-p4
$ git p4 clone //depot/somebranch
(You need to remove the .py file extension).
Or you can just run it manually (this is just a Python script and has no special dependencies).
eg.
$ /path/to/git-p4.py clone //depot/somebranch
The real problem is that the git-p4 Debian package has been removed because it depends on the non-free p4 client. See Error Report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715534
Thus, creating a non-free or contrib git -p4 debian package will fix this correctly.
source share