Install instructions are in this post
(The version info is slightly out of date in that post, but the instructions should still be correct)
To enable logging of decoded messages, either “sudo dpkg-reconfigure dump1090-mutability” and say yes to the relevant question (it’s near the end)
or edit /etc/default/dump1090-mutability and set LOG_DECODED_MESSAGES=“yes”