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 
Android Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures Flutter git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized User Interface Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply / Ask Question