Installing stuff on Linux is really tricky for me because there's so many ways to do it, and then if I want to remove something I don't know how to do it. I have CMake in my /usr/local/bin folder. But it's missing the cmake-gui, so I want to install it, but I want to remove the existing one. When I do apt list --installed there's no CMake, so I can't remove it with that. And I'm pretty sure I didn't put cmake inside the bin folder. CMake has some other files, like in the usr/share, so if I did want to manually remove CMake I'd have to remove that folder, but I don't know if there are any others. The process should be simple like in Windows, you install something, there's a record of it, and you can uninstall it. I know that that's basically what apt is, and I like apt, but the problem is that every SINGLE ONE of the packages I was interested in were REALLY out of date using apt.
Anyway, let's say I remove /usr/local/bin/cmake and usr/share, and then download CMake again, it only comes as a zip or a tar file, which means you can only manually place the files somewhere. Am I supposed to place the files in the /user/local/bin and user/share again? Then in the future if I want to update it I have to manually redo those folders? There's no better way?