Re: unistall package without removing others
I'm confused, the version you have installed IS a 4.8.7 version. so you shouldn't need to install another version from source.
Though if you do, you can just leave the system version installed and install the version from source into /usr/local/, which is usually the default when compiling from source. You might need to add a file called 99local.conf into /etc/ld.so.conf.d/ with the line: /usr/local/lib if you do that.
There IS a way to just delete a specific rpm, but it is generally not recommended because it bypasses dnf and uses rpm directly: rpm -e --nodeps
Running Fedora 29 64-bit on a HP EliteDesk 800 G1, 3.6GHz i7-4790 CPU (4 cores, 8 threads), 32GB RAM, 250GB SSD + 2TB HDD, EVGA GTX1050 TI SC 4GB GDDR5 video card. Vizio E221-A1 22" 1080p HDTV, using 1080P (1920x1080) over HDMI