Last active
March 29, 2022 09:40
-
-
Save mmazur/6ff948599e3e95e83a8e2bc5430ce4d8 to your computer and use it in GitHub Desktop.
CRC on centos8 setup
This file contains hidden or 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
#!/bin/bash | |
cd $HOME | |
mkdir ~/bin | |
# Downloading stuff will take a while: | |
curl https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/linux/oc.tar.gz -Lo oc.tar.gz | |
curl https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz -Lo crc-linux-amd64.tar.xz | |
tar xf oc.tar.gz | |
tar xf crc-linux-amd64.tar.xz | |
mv oc bin | |
mv crc-linux-*-amd64/crc bin | |
chmod a+rx bin/* | |
rm -rf *.xz *.tar.gz crc-linux-*-amd64 |
Updated. Original commands worked fine for me, but if the -L helps in some cases, then why not.
The -L flag follows redirects... I don't know why I needed it, but with the L flag it did work for me on the 2nd try 🤔
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mmazur you might want to fix your script: