During setup on a specific set of servers, I need
gcc-c++ installed to compile some of the software I am setting up. After install is complete I need to remove the compiler for security reasons. However, the libraries that
gcc-c++ installs need to remain in place.
I can see the
.a files in the output of
repoquery --list gcc-c++.
I could just copy those specific libraries to
yum remove gcc-c++, and then move the libraries back into place.
Is there an already created solution to this? e.g. is there an option that
rpm has that would allow me to leave specific files from the package in place?
If no option in
rpm, is there any preferable way of doing it than my suggestion of copying to
/tmp and moving them back afterward??