Last active
January 1, 2026 01:51
-
-
Save bebeal/288acb8147eb194abdb5d71a5b442933 to your computer and use it in GitHub Desktop.
Block google chrome updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| HOSTS_FILE="/etc/hosts" | |
| ENTRIES=( | |
| "127.0.0.1 update.googleapis.com" | |
| "127.0.0.1 tools.google.com" | |
| "127.0.0.1 dl.google.com" | |
| "127.0.0.1 edgedl.me.gvt1.com" | |
| "127.0.0.1 clients2.google.com" | |
| "127.0.0.1 clients4.google.com" | |
| ) | |
| for entry in "${ENTRIES[@]}"; do | |
| if ! grep -qF "$entry" "$HOSTS_FILE"; then | |
| echo "$entry" | sudo tee -a "$HOSTS_FILE" > /dev/null | |
| fi | |
| done | |
| echo "Done" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because they did this:
