Last active
July 25, 2024 05:27
-
-
Save rochejul/06fbf6fc0f9a4769a7dc471453f9f737 to your computer and use it in GitHub Desktop.
Install Chrome headless on various System
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
// RHEL/CentOS 7 users | |
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm | |
yum install xorg-x11-server-Xvfb | |
// Ubuntu | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo apt-get update | |
sudo apt-get install -y google-chrome-unstable | |
// Debian | |
apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg --no-install-recommends | |
curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - | |
echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list | |
apt-get update && apt-get install -y google-chrome-stable --no-install-recommends | |
apt-get purge --auto-remove -y curl gnupg | |
rm -rf /var/lib/apt/lists/* | |
// Mac OS | |
brew install Caskroom/versions/google-chrome-canary | |
// Windows | |
https://www.google.fr/chrome/browser/desktop/index.html | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment