Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save danvisx/79ab5e199c1c90cdb9a4255546123033 to your computer and use it in GitHub Desktop.

Select an option

Save danvisx/79ab5e199c1c90cdb9a4255546123033 to your computer and use it in GitHub Desktop.
Install JetBrains Toolbox on Fedora (run without sudo)
#!/bin/bash
set -e
set -o pipefail
sudo dnf install -y jq
# switch this to eap if you require the early access version
RELEASE_TYPE=release
TOOLBOX_BIN_DIR=${HOME}/.local/share/JetBrains/Toolbox/bin
# if you have an existing install you should consider removing this directory first
install -d ${TOOLBOX_BIN_DIR}
curl -sL \
$(curl -s "https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=${RELEASE_TYPE}" \
| jq -r '.TBA[0].downloads.linux.link') \
| tar xzvf - \
--directory="${TOOLBOX_BIN_DIR}" \
--strip-components=2
# make a bin dir and create symlink
install -d "${TOOLBOX_BIN_DIR}"
mkdir -p "${HOME}/.local/bin"
ln -sf ${TOOLBOX_BIN_DIR}/jetbrains-toolbox ${HOME}/.local/bin/jetbrains-toolbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment