You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
768 B
Bash
15 lines
768 B
Bash
#!/bin/bash
|
|
|
|
# delete previously versions
|
|
\rm -rf dl.google.com opt
|
|
|
|
# download latest unstable, beta, & stable chrome versions
|
|
wget -mS https://dl.google.com/linux/direct/google-chrome-{unstable,beta,stable}_current_amd64.deb
|
|
|
|
# on Debian/Ubuntu based systems, `dpkg --fsys-tarfile` can also be used to extract deb file contents,
|
|
# but ar is more generic, and availalbe on all Linux variants
|
|
ar p dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb data.tar.xz | tar --xz -xvv ./opt/google/chrome-unstable/
|
|
ar p dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb data.tar.xz | tar --xz -xvv ./opt/google/chrome-beta/
|
|
ar p dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb data.tar.xz | tar --xz -xvv ./opt/google/chrome/
|
|
|