The PetaLinux Command Line utilities are now available as open source https://github.com/Xilinx/PetaLinux
For more details and how to use refer https://github.com/Xilinx/PetaLinux/blob/xlnx_rel_v2024.1/README.md
The PetaLinux Tool Generation is now available as open source https://github.com/Xilinx/meta-petalinux-tools/
For more details and how to use refer https://github.com/Xilinx/meta-petalinux-tools/blob/xlnx_rel_v2024.1/README.md