Let me show you how to install CyanogenMod 13 which is build on Android 6.0.1 since Nexus 4 no longer receives update from Google. I will be explaining you using Debian Linux. Download the latest version of CyanogenMod 13 from Official CyanogenMod website https://download.cyanogenmod.org/?device=mako . I would recommend Stable release only. Make sure to download system image (CyanogenMod Build), recovery image (CyanogenMod Recovery) and Google App from https://wiki.cyanogenmod.org/w/Google_Apps . 1. You will need Android SDK platform tool and we will be using fastboot and adb. 2. Now boot the phone in recovery mode, hold down Volume Down + Power button until bootloader appears, then navigate to Bootloader by clicking volume up/down and select by clicking Power button. 3. Open terminal and then navigate to folder where you have placed Android SDK platform tools. Type sudo ./fastboot oem unlock if your OEM is locked else...