Download NetBeans from https://netbeans.org/downloads/8.2/
Follow the instruction
Or do it like this..
For Linux platforms, the installer file has the .sh extension. For these platforms, you need to make the installer files executable by using the following command: chmod +x . Type ./ to run the installer.
chmod +x netbeans-8.2-php-linux-x64.sh
Then the installation window will appear, do it accordingly.