[CentOS] question on unused directories in /usr/lib and /usr/lib64

Wed Feb 15 22:24:02 UTC 2012
m.roth at 5-cent.us <m.roth at 5-cent.us>

Craig Thompson wrote:
> Thanks, Lamar.  This is the type of helpful response I was looking for.
>
> If anyone has any other practical "lists of junk" please post them.
>
> My goal is to develop my own list, put it in a basic shell script and
> remove them wholesale.  I've done this for generally unused services which
> I run upon installation of a basic system, and it works well.
>
> The more community input, the better, IMO.
<snip>
Here's a thought:
yum grouplist | awk '{if ($3 ~ /Groups/ ) { doit = ($1 ~ /Install/ ) ? 1 :
0;} if ( doit ) { print $0; }}'

This will name all the groups that are installed. if you see, say, "Office
Suite and Productivity", you can do a yum remove @"Office Suite and
Productivity"

    mark