Skip to content

Instantly share code, notes, and snippets.

@ssmythe
Last active January 26, 2024 18:21
Show Gist options
  • Save ssmythe/193681fe70b5af289881 to your computer and use it in GitHub Desktop.
Save ssmythe/193681fe70b5af289881 to your computer and use it in GitHub Desktop.
Install P4 cli on CentOS 6
#!/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
@ssmythe
Copy link
Author

ssmythe commented Jan 26, 2024

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