Software & AppsOperating SystemLinux

How To Install Chromium Using Command Line in Ubuntu

Ubuntu 8

In this article, we will walk you through the process of installing Chromium, an open-source browser project that forms the basis for the Chrome web browser, using the command line in Ubuntu. We will cover three methods: using apt-get, using snap, and using a PPA (Personal Package Archive).

Quick Answer

To install Chromium using the command line in Ubuntu, you have three options: using apt-get, using snap, or using a PPA. With apt-get, you can simply run the command sudo apt-get install chromium-browser. With snap, you can use sudo snap install chromium. And with a PPA, you can run the commands sudo add-apt-repository ppa:canonical-chromium-builds/stage, sudo apt update, and sudo apt install chromium-browser.

Installing Chromium using apt-get

The apt-get command is a powerful command-line tool used for package management in Ubuntu and other Linux distributions. It handles the installation, upgrade, and removal of software packages.

To install Chromium using apt-get, follow these steps:

  1. Open your terminal. You can do this by pressing Ctrl + Alt + T on your keyboard.
  2. Type the following command and press Enter:
    sudo apt-get install chromium-browser
    The sudo command allows you to run programs with the security privileges of the superuser. apt-get install is used to install a package, and chromium-browser is the name of the package we want to install.
  3. You may be asked to enter your password. Type it in and press Enter.
  4. The installation process will begin. Wait for it to complete.

Installing Chromium using snap

Snap is a software deployment and package management system developed by Canonical. It is designed to work on any Linux distribution.

To install Chromium as a snap package, follow these steps:

  1. Open your terminal.
  2. Type the following command and press Enter:
    sudo snap install chromium
    The snap install command is used to install a snap package, and chromium is the name of the snap package we want to install.
  3. The installation process will begin. Wait for it to complete.

Installing Chromium using a PPA

If you encounter issues with the above methods, you can try installing Chromium from a PPA. A PPA, or Personal Package Archive, is a collection of software not included in Ubuntu by default.

To install Chromium from a PPA, follow these steps:

  1. Open your terminal.
  2. Type the following commands and press Enter after each one:
    sudo add-apt-repository ppa:canonical-chromium-builds/stage
    sudo apt update
    sudo apt install chromium-browser
    The add-apt-repository command allows you to add a PPA to your system. ppa:canonical-chromium-builds/stage is the PPA we want to add. apt update is used to update the package list, and apt install chromium-browser is used to install Chromium.
  3. The installation process will begin. Wait for it to complete.

Troubleshooting

If you receive an error like “E: Package ‘chromium-browser’ has no installation candidate,” try updating the package lists before installing. You can do this by typing sudo apt-get update in the terminal and pressing Enter.

Remember to enter your password if prompted during the installation process.

Conclusion

In this article, we have covered three methods of installing Chromium using the command line in Ubuntu. We hope you found this guide helpful. If you have any questions or run into any issues, feel free to leave a comment below.

Can I use these installation methods for other Linux distributions?

These installation methods are specifically for Ubuntu. However, you can check the documentation or package manager of your Linux distribution for the appropriate commands to install Chromium.

Can I install Chromium alongside other web browsers?

Yes, you can install Chromium alongside other web browsers. It will not interfere with the functionality of other browsers on your system.

How do I uninstall Chromium?

To uninstall Chromium, you can use the apt-get, snap, or apt commands depending on the method you used to install it. For example, if you installed it using apt-get, you can run sudo apt-get remove chromium-browser to uninstall it.

Will my bookmarks and settings be preserved when I update Chromium?

Yes, your bookmarks and settings should be preserved when you update Chromium. However, it’s always a good practice to backup your bookmarks and important settings before performing any updates.

Can I use these installation methods on a server without a graphical interface?

Yes, you can use these installation methods on a server without a graphical interface. The command-line tools (apt-get, snap, etc.) can be used to install Chromium without the need for a graphical interface.

Leave a Comment

Your email address will not be published. Required fields are marked *