Skip to content

Instantly share code, notes, and snippets.

@mmazur
Last active March 29, 2022 09:40
Show Gist options
  • Save mmazur/6ff948599e3e95e83a8e2bc5430ce4d8 to your computer and use it in GitHub Desktop.
Save mmazur/6ff948599e3e95e83a8e2bc5430ce4d8 to your computer and use it in GitHub Desktop.
CRC on centos8 setup
#!/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
@shibumi
Copy link

shibumi commented Mar 29, 2022

@mmazur you might want to fix your script:

# 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

@mmazur
Copy link
Author

mmazur commented Mar 29, 2022

Updated. Original commands worked fine for me, but if the -L helps in some cases, then why not.

@shibumi
Copy link

shibumi commented Mar 29, 2022

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