Where can I download gaviota endgame tables? I am looking for a link to download all 5 pieces gaviota endgame tables (which can give me DTM values).

A few links from google search (like this) lead me to the site which does not exist.
https://chess.cygnitec.com/tablebases/gaviota/

Use wget recursively: https://serverfault.com/questions/25199/using-wget-to-recursively-download-whole-ftp-directories for all the files.