Update Pi-hole (Latest Version)


Ketika saya login ke Dashboard Admin Pi-hole, lalu saya melihat pemberitahuan warna merah dibagian bawah, dengan pesan 'Update available!'
 
Pi-hole notif update - ITSTAFF.web.id

Sebenarnya saya orang yang paling malas untuk update sistem, kalau kalau sudah jalan aman di mesin production, ya sudah biarkan saja 😄. Tapi dengan kondisi saat ini versi Pi-hole v5.2, Web/AdminLTE v5.2, FTL v5.3.1 dan saya cek di website Official Pi-hole ternyata versi Pi-hole yang saya gunakan sudah ketinggalan jauh, versi terbaru sampai saat ini tanggal 16 Februari 2021 sudah versi Pi-hole v5.2.4, Web/AdminLTE v5.4 dan FTL v5.7.

Oke lah kalau begitu hari ini saya putuskan untuk update sistem Pi-hole ke versi terbaru, langsung saja mari kita mulai.

1. Login ke Server Pi-hole 

Saya menggunakan aplikasi Xshell untuk login ke server Pi-hole dengan SSH, anda bisa juga menggunakan aplikasi remote SSH lainnya.

2. Cek Versi Pi-hole Yang Sudah Terinstall

# pihole -v
	Pi-hole version is v5.2 (Latest: v5.2.4)
    AdminLTE version is v5.2 (Latest: v5.4)
    FTL version is v5.3.1 (Latest: v5.7)

3. Update Pi-hole

# pihole -up
	[i] Checking for updates...
 	[i] Pi-hole Core:     update available
	[i] Web Interface:    update available
	[i] FTL:              update available

	[i] Pi-hole core files out of date, updating local repo.
	[] Check for existing repository in /etc/.pihole
	[i] Update repo in /etc/.pihole...HEAD is now at cbfb58f Merge pull request #4000 from pi-hole/release/v5.2.4
	[] Update repo in /etc/.pihole

	[i] If you had made any changes in '/etc/.pihole/', they have been stashed using 'git stash'

	[i] Pi-hole Web Admin files out of date, updating local repo.
	[] Check for existing repository in /var/www/html/admin
	[i] Update repo in /var/www/html/admin...HEAD is now at 989e1ba Merge pull request #1737 from pi-hole/release/v5.4
	[] Update repo in /var/www/html/admin

	[i] If you had made any changes in '/var/www/html/admin/', they have been stashed using 'git stash'

	[i] FTL out of date, it will be updated by the installer.

	[] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

	[i] Performing unattended setup, no whiptail dialogs will be displayed

	[] Checking yum for upgraded packages... up to date!

	[i] Installer Dependency checks...
	[] Checking for git
	[] Checking for iproute
	[] Checking for newt
	[] Checking for procps-ng
	[] Checking for which
	[] Checking for chkconfig
	[] Checking for bind-utils

 	[] Supported OS detected
	[] Default SELinux: permissive
	[] Current SELinux: Permissive
	[i] Performing reconfiguration, skipping download of local repos
 	[] Resetting repository within /etc/.pihole...
 	[] Resetting repository within /var/www/html/admin...
 	[i] Main Dependency checks...
 	[] Checking for cronie
 	[] Checking for curl
 	[] Checking for findutils
 	[] Checking for nmap-ncat
 	[] Checking for sudo
 	[] Checking for unzip
 	[] Checking for libidn2
 	[] Checking for psmisc
 	[] Checking for sqlite
 	[] Checking for libcap
 	[] Checking for lsof
 	[] Checking for lighttpd
 	[] Checking for lighttpd-fastcgi
 	[] Checking for php-common
 	[] Checking for php-cli
 	[] Checking for php-pdo
 	[] Checking for php-xml
 	[] Checking for php-intl

 	[] Enabling lighttpd service to start on reboot...
 	[] Checking for user 'pihole'

 	[i] FTL Checks...

 	[] Detected x86_64 processor
 	[i] Checking for existing FTL binary...
 	[] Downloading and Installing FTL
 	[i] Warning: 'lighty-enable-mod' utility not found
   		 Please ensure fastcgi is enabled if you experience issues
 	[] Installing scripts from /etc/.pihole

 	[i] Installing configs from /etc/.pihole...
 	[i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
 	[] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf

 	[i] Installing blocking page...
 	[] Creating directory for blocking page, and copying files
 	[i] Backing up index.lighttpd.html
     	 No default index.lighttpd.html file found... not backing up

	[] Installing sudoer file

 	[] Installing latest Cron script

 	[] Installing latest logrotate script
 	[i] Backing up /etc/dnsmasq.conf to /etc/dnsmasq.conf.old
 	[] man pages installed and database updated
 	[i] Testing if systemd-resolved is enabled
  	[i] Systemd-resolved is not enabled
 	[] Restarting lighttpd service...
 	[] Enabling lighttpd service to start on reboot...
 	[i] Restarting services...
 	[] Enabling pihole-FTL service to start on reboot...
 	[] Restarting pihole-FTL service...
 	[] Deleting existing list cache
  	[i] Neutrino emissions detected...
 	[] Pulling blocklist source list into range

 	[] Preparing new gravity database
 	[i] Using libz compression

 	[i] Target: https://dbl.oisd.nl
 	[] Status: Retrieval successful
 	[i] Received 2312480 domains

 	[i] Target: https://raw.githubusercontent.com/Spam404/lists/master/main-blacklist.txt
 	[] Status: Retrieval successful
 	[i] Received 8089 domains

 	[] Storing downloaded domains in new gravity database
 	[] Building tree
 	[] Swapping databases
 	[i] Number of gravity domains: 2322209 (2318625 unique domains)
 	[i] Number of exact blacklisted domains: 0
 	[i] Number of regex blacklist filters: 0
 	[i] Number of exact whitelisted domains: 0
 	[i] Number of regex whitelist filters: 8
 	[] Flushing DNS cache
 	[] Cleaning up stray matter

 	[] DNS service is listening
    	[] UDP (IPv4)
    	[] TCP (IPv4)
    	[] UDP (IPv6)
    	[] TCP (IPv6)

 	[] Pi-hole blocking is enabled

 	[i] The install log is located at: /etc/pihole/install.log
	Update Complete!


 	Current Pi-hole version is v5.2.4.
 	Current AdminLTE version is v5.4.
 	Current FTL version is v5.7.

4. Testing Pi-hole

Selesai, coba login kembali ke Dashboard Admin Pi-hole, lihat perubahan yang terjadi.

Pi-hole updated - ITSTAFF.web.id

Itu saja langkah-langkah yang perlu dilakukan untuk update Pi-hole ke versi terbaru, mudah dan sederhana bukan?




whydnet-aboutITSTAFF.web.id
learning by doing!

[ADS] Bottom Ads

© 2020 - . All Rights Reserved.