The installation shown below is for Debian based distros such as Ubuntu, Kali or Parrot OS.
Nuclei is used to send requests across targets based on a template, leading to zero false positives and providing fast scanning on a large number of hosts. Nuclei offers scanning for a variety of protocols, including TCP, DNS, HTTP, SSL, File, Whois, Websocket, Headless, Code etc.
Link ↓
1.- Clone Git Repository
┌──(kali㉿kali)-[~/nuclei/cmd/nuclei]
└─$ git clone https://github.com/projectdiscovery/nuclei.git
Cloning into 'nuclei'...
remote: Enumerating objects: 42145, done.
remote: Counting objects: 100% (3144/3144), done.
remote: Compressing objects: 100% (1406/1406), done.
remote: Total 42145 (delta 2050), reused 2472 (delta 1678), pack-reused 39001
Receiving objects: 100% (42145/42145), 27.34 MiB | 10.92 MiB/s, done.
Resolving deltas: 100% (29421/29421), done.2.- Access the folder
┌──(kali㉿kali)-[~/nuclei/cmd/nuclei]
└─$ cd nuclei/cmd/nuclei3.- Compile packages of the Nuclei
┌──(kali㉿kali)-[~/…/nuclei/nuclei/cmd/nuclei]
└─$ go build
go: downloading github.com/projectdiscovery/goflags v0.1.54
go: downloading github.com/projectdiscovery/hmap v0.0.44
go: downloading github.com/projectdiscovery/ratelimit v0.0.43
go: downloading github.com/projectdiscovery/rawhttp v0.1.51
go: downloading github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc5104.- Move files to path /usr/local/bin/
┌──(kali㉿kali)-[~/…/nuclei/nuclei/cmd/nuclei]
└─$ sudo mv nuclei /usr/local/bin/5.- We validate the installation by running the command
┌──(kali㉿kali)-[~/…/nuclei/nuclei/cmd/nuclei]
└─$ nuclei -version
[INF] Nuclei Engine Version: v3.2.8
[INF] Nuclei Config Directory: /home/kali/.config/nuclei
[INF] Nuclei Cache Directory: /home/kali/.cache/nuclei
[INF] PDCP Directory: /home/kali/.pdcpBonus
Update Nuclei
┌──(kali㉿kali)-[~/…/nuclei/nuclei/cmd/nuclei]
└─$ nuclei -up
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v3.2.8
projectdiscovery.io
[INF] nuclei is already updated to latest versionUpdate Templates (In case of having the templates, they will be installed)
┌──(kali㉿kali)-[~/…/nuclei/nuclei/cmd/nuclei]
└─$ nuclei -ut
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v3.2.8
projectdiscovery.io
[INF] No new updates found for nuclei templatesAnd we finish!!

Thank you for reading my post feel free to share it on your social networks and friends to spread the knowledge to the right people.