Here’s how. First, you need Android SDK installed and maybe this
Warning, this WILL clear your data.
wget http://dl.google.com/android/android-sdk_r20.0.3-linux.tgz tar xvf  android-sdk_r20.0.3-linux.tgz mkdir -p ~/opt/sdk mv android-sdk-linux ~/opt/sdk/android-sdk export PATH= /home/abc/opt/sdk/android-sdk/platform-tools fastboot devices
Your device, connected via USB and with debugging enabled, should be listed.
cd ~/downloads/ wget https://dl.google.com/dl/android/aosp/yakju-imm76i-factory-8001e72f.tgz tar -xzf yakju-imm76i-factory-8001e72f.tgz cd yakju-imm76i sudo fastboot oem unlock sudo ./flash-all.sh
wait, wait, boom, works 😀
sudo fastboot oem lock