I am about to upgrade my old pi B to a new pi4 B 4GB

For fresh install, the automated script by @wiedehopf are of course the easiest method.

However for those who enjoy doing this excercise manually, or want to learn, this one is a good guide:

Re-imaging Made Easy

Version 6.0

Yesterday Flightaware has officially released ver 6.0 source-code. However their package repository is still ver 5.0

You may either go now with ver 5.0 package install, and later upgrade to ver 6.0 when Flightaware releases its packages, or use this automated script if you want ver 6.0 right away now:

Piaware ver 6.0 with Adaptive Gain Control - Install it on Raspbian Buster (32-bit and 64-bit) on RPi 2, 3, 4 and Debian 10, 11 Ubuntu 20 amd64 x86_64

FA Package repository (as is now Sep 01):

wget https://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_5.0_all.deb

sudo dpkg -i piaware-repository_5.0_all.deb

FA Source-code:

$ git clone https://github.com/flightaware/dump1090 
$ cd dump1090 
$ git log
commit 9788588abae4347118ef72b549120a172a996440 (HEAD -> master, tag: v6.0, origin/master, origin/HEAD) 
Author: eric1tran <eric1tran@gmail.com> 
Date: Tue Aug 31 21:26:24 2021 +0000 
          Release 6.0 
$ git clone http://github.com/flightaware/piaware_builder 
$ cd piaware_builder 
$ git log 
commit 6c6f0e9f81fd080903fa030348e2c1b410cb7583 (HEAD -> master, origin/master, origin/HEAD) 
Author: eric1tran <eric1tran@gmail.com> 
Date: Tue Aug 31 22:02:24 2021 +0000 
      Release PiAware 6.0