Skip to content

Instantly share code, notes, and snippets.

@yowcow
Last active February 1, 2022 10:00
Show Gist options
  • Save yowcow/5abf1eb60c7234aaae928e0813bb21ae to your computer and use it in GitHub Desktop.
Save yowcow/5abf1eb60c7234aaae928e0813bb21ae to your computer and use it in GitHub Desktop.
Install/Uninstall Google Chrome (to run headless Chrome on CLI)
PKG := google-chrome-stable
DEB := $(PKG)_current_amd64.deb
all: $(DEB)
$(DEB):
curl -L https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o $@
info: $(DEB)
dpkg -I $<
install: $(DEB)
dpkg -i $<
uninstall:
dpkg -r $(PKG)
clean:
rm -f $(DEB)
.PHONY: all info install uninstall clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment