On 25.04 type install-dev-tools as root and then apt whatever you want.
install-dev-tools
apt whatever you want
https://www.truenas.com/docs/scale/scaletutorials/systemsettings/advanced/developermode/