1RPMCONF(8)                                                          RPMCONF(8)
2
3
4

NAME

6       rpmconf  - This tool search for .rpmnew, .rpmsave and .rpmorigfiles and
7       ask you what to do with them: Keep current version, place back old ver‐
8       sion or watch the diff.
9

SYNOPSIS

11       rpmconf [ options ... ]
12
13
14
15        [ -a, --all ]
16
17
18
19        [ -o<package>, --owner=<package> ]
20
21
22
23        [ -f<type> --frontend=<type> ]
24
25
26
27        [ -c, --clean ]
28
29
30
31        [ -d, --debug ]
32
33
34
35        [ -D, --diff ]
36
37
38
39        [ -t, --test ]
40
41
42
43        [ -Z ]
44
45
46

DESCRIPTION

48       Rpmconf  will  search  for  all  config  file  of given package (or all
49       installed packages) and will check if coresponding .rpmsave, .rpmnew or
50       .rpmorig file exist. In such case you will be asked if you want to keep
51       current version, put back old version or see diff of those  two  files.
52       Then it delete that unwanted file.
53
54       Additionally  rpmconf  can  also  handle  application configuration, if
55       application support rpmconf.  Application  must  have  executable  file
56       present  in  /usr/share/rpmconf/.   The file must have the same name as
57       package itself and the package must own that file.  The executable must
58       be  idempotent.  I.e.  you can execute it multiple times and additional
59       run, must not change something. Ideally it  will  be  Puppet/Chef/Ansi‐
60       ble/CFengine manifest.
61

OPTIONS

63       -a, --all
64              Check configuration files of all packages.
65
66       -o<package>, --owner=<package>
67              Check only configuration files of given package.
68
69       -f<type>, --frontend=<type>
70              Define  which frontend should be used for merging. Valid options
71              are: vimdiff, gvimdiff, diffuse, kdiff3, meld and env. When  set
72              to  env,  the command to use is taken from the environment vari‐
73              able $MERGE. The default is env.
74
75       -c, --clean
76              Find all .rpmnew and .rpmsave files in /etc  and  /var  directo‐
77              ries.  List all files, which belongs to installed packages. Then
78              it write all files which are orphaned and ask you if it is  safe
79              to delete them.
80
81       -d, --debug
82              Dry run. Instead of executing an action (move/remove of file) it
83              will be echoed to standard output. However executable for  merg‐
84              ing  of configuration files is executed. Beware that this option
85              is position sensitive. And only action specified  after  --debug
86              are  dry  run.   E.g. --all --debug --clean, will run in dry run
87              mode only for --clean, but not for --all.
88
89       -D, --diff
90              Non-interactive diff mode.  This option works with  --owner  and
91              --all.  Useful to audit config files after package upgrades.
92
93       -t, --test
94              Just  test existence of files to merge. If there is some file to
95              merge then rpmconf will print it and exit with status code 5. If
96              there is none to merge, then return with exit code 0.
97
98       -V, --version
99              Display  rpmconf version. This option expect that this script is
100              installed as rpm package.
101
102       -Z     Display SELinux context of old and new file. Note: if you choose
103              to  install .rpmsave version. It is copied to original filename,
104              therefore SELinux context is reset to default value specified by
105              SELinux policy.
106

SEE ALSO

108       rpm(8)
109

AUTHORS

111       Miroslav Suchý <msuchy@redhat.com>
112
113
114
115Version 0.2                    02 February 2019                     RPMCONF(8)
Impressum