If you're on Fedora, there used to be something (I think it was called "alien") that could take the installation source and turn it into an rpm, so that it would be updatable / removable with the package manager (yum). If I was going to be installing and removing a lot of things on Fedora, I would look into that or one of the Snap / Flatpack things, to keep from polluting the system hierarchy with odd applications, libraries, and odd versions of things that are already in the system's own package management space.