Skip to content

Instantly share code, notes, and snippets.

@fabiofdsantos
Last active September 26, 2015 16:34
Show Gist options
  • Save fabiofdsantos/fafce2ecbe8634398cc8 to your computer and use it in GitHub Desktop.
Save fabiofdsantos/fafce2ecbe8634398cc8 to your computer and use it in GitHub Desktop.
How to update Atom Editor on Linux
#!/bin/bash
wget -q https://github.com/atom/atom/releases/latest -O /tmp/latest
wget --progress=bar -q $(awk -F '[<>]' '/href=".*atom-amd64.deb/ {match($0,"href=\"(.*.deb)\"",a); print "https://github.com/" a[1]} ' /tmp/latest) -O /tmp/atom-amd64.deb --show-progress
dpkg -i /tmp/atom-amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment