Download Article
Download Article
Need to install Google Chrome on Linux from the command line? Whether you're logged in remotely or using a terminal window, it's easy to install Chrome using wget to download the installer and dpkg to run it. This wikiHow article will walk you through installing Chrome from the terminal on Ubuntu or Debian Linux.
Steps
-
Update the package index. To make sure your system is up-to-date, run these two commands: [2] X Research sourceAdvertisement
-
Install wget if you don't already have it. This is the tool you will use to download the Chrome package from the prompt. [5] X Research source
- Type wget --version and press the Enter key. If you see a version number, just skip to the next step now.
- If you get an error because wget is not installed, type sudo apt install wget and press the Enter key to install it.
-
Use wget to download the Chrome package. Since there is no longer a 32-bit version of Chrome, you'll need the 64-bit version. To get the latest stable version, run this command: [6] X Research source
- Type wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb and press the Enter key.
- After the package is finished downloading, you'll return to the command prompt.
-
Install the downloaded Chrome package. To install Chrome from the downloaded package, use the following command: [7] X Research source
- Type sudo dpkg -i google-chrome-stable_current_amd64.deb and press Enter .
-
Fix errors that occurred in the Chrome installation. If you see any errors during the installation, type sudo apt-get install -f and press the Enter key to repair them. [8] X Research source
-
Advertisement
Community Q&A
Search
-
QuestionI downloaded Google Chrome for Linux in the terminal and launched it by typing "google-chrome," but it said "Command not found." What do I do?Community AnswerYou have to install it. Downloading is only half the job. Only installed packages can be run from terminal. In Unix systems it usually means it's extracted into a specific path, which is usually done by the package manager itself.
-
QuestionI couldn't get the second command to work.Anuj_Kumar1Community AnswerMake sure you have recent version of Linux and active internet connection. Old version of Linux have old repository links which may not be available.
-
Question1. Is it necessary to always open Google Chrome from terminal, and 2. Must the terminal screen be kept open for Google Chrome to keep working?Top AnswererNo. Chrome should show up in the applications of menu of most desktop environments. You can also launch it from a simple run prompt in most environments by pressing Alt-F2, and then entering google-Chrome in the box. Normally, closing the terminal would close Chrome (or most applications launched from it). If you launch google-chrome as a background process (using the command "google-chrome &") and then disown the process (running "disown #", where # is the PID of the process), you can close the terminal and leave Chrome running. Alternatively, launch Chrome with nohup ("nohup google-chrome") and then close the terminal.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Video
Tips
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
References
- ↑ https://www.geeksforgeeks.org/how-to-open-terminal-in-linux/
- ↑ https://support.google.com/chromebook/answer/9145439?hl=en
- ↑ https://www.freecodecamp.org/news/sudo-apt-get-update-vs-upgrade-what-is-the-difference/
- ↑ https://www.freecodecamp.org/news/sudo-apt-get-update-vs-upgrade-what-is-the-difference/
- ↑ https://www.linuxjournal.com/content/how-can-you-install-google-browser-debian
- ↑ https://www.linuxjournal.com/content/how-can-you-install-google-browser-debian
- ↑ https://linuxhint.com/install-google-chrome-on-ubuntu-22-04/
- ↑ https://www.xda-developers.com/how-install-chrome-ubuntu/#how-to-install-chrome-on-ubuntu-using-terminal
- ↑ https://linuxhint.com/install-google-chrome-on-ubuntu-22-04/
About This Article
Article Summary
X
1. Press Control
+ Alt
+ T
to open a terminal.
2. Type "sudo apt update and press" Enter
.
3. Type "sudo apt upgrade" and press Enter
.
4. Install wget
if you don't already have it.
5. Use "wget" to download the latest page from Google.
6. Use "sudo dpkg –I" to install the package.
Did this summary help you?
Thanks to all authors for creating a page that has been read 981,915 times.
Advertisement