In most modern versions of Kali, Fern is pre-installed. If it is not, it can be installed via the repository: