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.
- The first thing you will want to do is determine which version you need by ssh into your router. Download
opkg install file
thenfile /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
- 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
- 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
a.cp /usr/bin/AdGuardHome /usr/bin/AdGuardHome.old
b.cp /etc/adguardhome.yaml /etc/adguardhome.yaml.backup
- Next create some temp space to download the latest AGH
mkdir /overlay/tmp
- 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
- Next we need to extract the new binary
tar -xzvf ./AdGuardHome_linux_mipsle_softfloat.tar.gz
- This will create a new directory
cd AdGuardHome
- Check that the file matches the same arch as your current binary
file ./AdGuardHome
- Now it’s time to do the switcharo. First thing is to shutdown AGH
/mnt/mmcblk0/upper/etc/rc.d/K89adguardhome stop
cp ./AdGuardHome /usr/bin/
- Last thing is to restart AGH
/mnt/mmcblk0/upper/etc/rc.d/S21adguardhome start
-
ps | grep -i adguardhome
— should show AGH running - 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