Home » Application Stack / User Interface » Flutter » How to install Chromium depot_tools on Ubuntu / Linux ?

How to install Chromium depot_tools on Ubuntu / Linux ?

Chromium depot_tools are the git extensions, which gives additional features. The Chromium depot_tools suite contains many git workflow-enhancing tools which are designed to work together to enable anyone to wrangle the Chromium codebase expertly

Follow below steps to install depot_tools on 64 bit Ubuntu 18.04 , same should also work on other versions of Ubuntu as well.

Note: For our development we are working at directory “/home/myuser/workspace” , you need to replace this path accordingly.

$ cd /home/myuser/workspace
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

Add “depot_tools” to the end of your PATH as,

$ export PATH=$PATH:/home/myuser/workspace/depot_tools

Check the commands from depot_tools are added to PATH as,

$ which gclient
/home/myuser/workspace/depot_tools/gclient

For adding depot_tools to your terminal path permanently, modify your users .bashrc to append above export command as,

$ vim /home/myuser/.bashrc

Add following line, save and quit, and start another terminal,

$ export PATH=$PATH:/home/myuser/depot_tools

Subscribe our Rurban Life YouTube Channel.. "Rural Life, Urban LifeStyle"

Leave a Comment