[CentOS] necessary/unused rpm packages

Fri Sep 24 17:08:05 UTC 2010
Robert Heller <heller at deepsoft.com>

At Fri, 24 Sep 2010 09:15:58 -0700 CentOS mailing list <centos at centos.org> wrote:

> Is there a way to identify if an rpm package is unused, or how much it is
> used?
> I would like to reduce my load time by removing unused packages in my
> kickstart, but do not want to cause problems for users on active systems by
> guessing which ones are not necessary (I load everything with kickstart
> now).  If I could find the packages are not used I could start by excluding
> them from a load and be fairly certain my users would not be impacted.

rpm -q --whatrequires will show what packages depend on a given package:

sauron.deepsoft.com% rpm -q --whatrequires gcc
sauron.deepsoft.com% rpm -q --whatrequires gcc-c++
no package requires gcc-c++
sauron.deepsoft.com% rpm -q --whatrequires gcc-gfortran

I *could* remove gcc-c++, expect that I frequently compile C++

Unless you ask your users, you won't know what packages/programs they
are actually using...

Presumably, you should have some idea of this already: are your users
office workers or computer programmers?  If office workers what sorts of
office productivity stuff do they do (write text documents, create bar
charts, create presentations, etc.)?  If computer programmers, which
programming languages do they use?  Do they use an IDE or make? 
Automake, autoconf, etc.?  Debuggers?

> MIME-Version: 1.0
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller at deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/