Devel packages usually contain the headers or other stuff that’s necessary for compiling applications.
To keep the systems clean and manageable, I’m looking for a command to
-devel-packages installed by
yum (also rpm’s, without the suffix).
I usually use
yum list installed and collect the devel’s manually.
Do you recommend to remove them after compilation as a general rule?
yum remove $(rpm -qa "*-devel")
Also, don’t do development on your production (or even staging) systems. If you really must rebuild an RPM, use
mock which builds it in a chroot and can clean up after itself.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.