Last active
January 26, 2024 18:21
-
-
Save ssmythe/193681fe70b5af289881 to your computer and use it in GitHub Desktop.
Install P4 cli on CentOS 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# P4 CLIENT | |
# | |
echo "p4-cli: Install p4 yum repo" | |
cat > /etc/yum.repos.d/perforce.repo <<EOF | |
[perforce] | |
name=Perforce | |
baseurl=http://package.perforce.com/yum/rhel/6/x86_64/ | |
enabled=1 | |
gpgcheck=1 | |
EOF | |
echo "p4-cli: Install p4 yum repo signing key" | |
rpm --import http://package.perforce.com/perforce.pubkey | |
echo "p4-cli: Install p4" | |
yum -y install perforce-cli |
Thanks for sharing the steps and also the last comment about 'helix-cli', worked for me!
also new package is
baseurl=http://package.perforce.com/yum/rhel/7/x86_64/
also, this seems to be the new client
yum -y install helix-cli
I'm glad the community is using these gists. I wrote them back in the day to help speed up installs and super common tasks. I'm glad to hear they provide value still. Enjoy!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The package is nowadays called
helix-cli
.