SCIENTIFIC-LINUX-USERS Archives

May 2013

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Elias Persson <[log in to unmask]>
Reply To:
Elias Persson <[log in to unmask]>
Date:
Wed, 22 May 2013 19:21:00 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
On 2013-05-22 17:45, Joseph Thomas Szep wrote:
> On Wed, May 22, 2013 at 08:06:47AM -0700, Yasha Karant wrote:
>> Is there a single list of the various "stock" configuration files
>> and directories used by the various applications that come with EL?
>> For example, printing configuration is in /etc/cups/*, and there are
>> many other examples.
>>
>> At one time, this was not as needed as today -- there were far fewer
>> applications, and most (all?) had configuration files that were in
>> /etc .  Many (most?) of such configuration files in the current
>> epoch seem to be in some path from /etc, but it can be a bit of a
>> hunt to find these files.
>>
>> Yasha Karant
>
>
> There is no list of these files.  Many systems program config files are in
> /etc or a subdirectory below it.
>
> For other programs, particularly third-party packages, the config files
> can wind up anywhere.
>
> If you know the name of the package you are interested in, you can see
> it's list of files using the command:
>
> 	rpm -ql <packagename>
>
> This will list out the full path name of each file in the package.
>
> -Joe
>
>

If it's config files you're interested in, `rpm -qc ...` should
limit that to just files the packager considers config'able.

Taking that one step further, this should get you a list of all
such files:

     rpm -qac | grep -v -e '(contains no files)'

Keep in mind though that what the packager considers to be a
config file (or for some other reason has marked as such) does
not always correspond to what normally would be considered such.
I certainly wouldn't have thought of /var/lib/rpm/* as configs...

ATOM RSS1 RSS2