Skip to content

Instantly share code, notes, and snippets.

@emmanuelnk
Created November 6, 2020 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emmanuelnk/194e09314a19ef29e4e408c56f00d7a5 to your computer and use it in GitHub Desktop.
Save emmanuelnk/194e09314a19ef29e4e408c56f00d7a5 to your computer and use it in GitHub Desktop.
Install the latest version of Slack on Linux from the Terminal
# Fedora
# If you need an international version of Slack, use this URL:
# e.g. Korean:
# https://slack.com/intl/ko-kr/downloads/instructions/fedora
wget -q https://slack.com/downloads/instructions/fedora -O - \
| tr "\t\r\n'" ' "' \
| grep -i -o '<a[^>]\+href[ ]*=[ \t]*"\(ht\|f\)tps\?:[^"]\+"' \
| sed -e 's/^.*"\([^"]\+\)".*$/\1/g' \
| grep 'slack.*rpm' \
| xargs wget -q -O slack-desktop-latest.rpm
sudo yum install $HOME/Downloads/slack-desktop-latest.rpm --yes
# Ubuntu
# If you need an international version of Slack, use this URL:
# e.g. Korean:
# https://slack.com/intl/ko-kr/downloads/instructions/ubuntu
wget -q https://slack.com/downloads/instructions/ubuntu -O - \
| tr "\t\r\n'" ' "' \
| grep -i -o '<a[^>]\+href[ ]*=[ \t]*"\(ht\|f\)tps\?:[^"]\+"' \
| sed -e 's/^.*"\([^"]\+\)".*$/\1/g' \
| grep 'slack-desktop' \
| xargs wget -q -O $HOME/Downloads/slack-desktop-latest.deb
sudo apt install $HOME/Downloads/slack-desktop-latest.deb --yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment