AdGuardHome on GL routers

I wanted to add a follow-on post on how to update to the latest release of AGH, assuming you followed the steps above. For me, by default I had a 6+ month old version of Adguard in opkg and with opkg having update issues on the latest Beryl beta I decided to just update Adguard directly.

  1. The first thing you will want to do is determine which version you need by ssh into your router. Download opkg install file then file /usr/bin/AdGuardHome

For Beryl I got an output like this:

/usr/bin/AdGuardHome: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), statically linked, Go BuildID=c0WtXHe74ItLRoOBOXFY/hmNPOIn3NRWjsIgoE2Ht/150uHHOGLVCtPkdknURS/eCewiXB9pIkOW5-aCcNy, stripped
  1. Next head over to AGH github page for releases and identify your platform. Note that for Beryl, choose the 32-bit MIPS LE. Keep this page handy. We’ll come back to it in a minute
  2. First we need to create a backup in case something goes haywire. Keep in mind that when you stop AGH, DNS resolution will also stop :slight_smile:
    a. cp /usr/bin/AdGuardHome /usr/bin/AdGuardHome.old
    b. cp /etc/adguardhome.yaml /etc/adguardhome.yaml.backup
  3. Next create some temp space to download the latest AGH mkdir /overlay/tmp
  4. Now it’s time to go back and copy the download link into your clipboard/buffer for the version of AGH you want. Then paste it into your ssh terminal after wget This example is for Beryl beta version. Choose your own version appropriately:
    a. cd /overlay/tmp
    b. wget https://static.adguard.com/adguardhome/beta/AdGuardHome_linux_mipsle_softfloat.tar.gz
  5. Next we need to extract the new binary tar -xzvf ./AdGuardHome_linux_mipsle_softfloat.tar.gz
  6. This will create a new directory cd AdGuardHome
  7. Check that the file matches the same arch as your current binary file ./AdGuardHome
  8. Now it’s time to do the switcharo. First thing is to shutdown AGH /mnt/mmcblk0/upper/etc/rc.d/K89adguardhome stop
  9. cp ./AdGuardHome /usr/bin/
  10. Last thing is to restart AGH /mnt/mmcblk0/upper/etc/rc.d/S21adguardhome start
  11. ps | grep -i adguardhome — should show AGH running
  12. Go to http://192.168.8.1:14711/ and enjoy the new release

*note: the above sometimes uses relative paths. Be sure you are in the expected directory before executing any commands with relative paths