This repository contains build scripts to produce an unofficial Ubuntu/Debian/Kali package (.deb) for Ghostty.
Get the deb file for your distro and CPU architecture from the release page
To update to a new version, just follow any of the installation methods above. There's no need to uninstall the old version; it will be updated correctly.