192
Appendix A. Command Line Config Management Tools
+++ /home/test/blah/hello_world.txt
2003-12-14
19:08:59.000000000
-0500 @@ -1 +1 @@ -foo +hello, world
The following table lists the options available for
rhncfg-manager diff
:
Option
Description
-cCHANNEL, --channel=CHANNEL Get file(s) from this config channel
-rREVISION, --revision=REVISION Use this revision
-dDEST_FILE,
--dest-file=DEST_FILE
Upload the file as this path
-tTOPDIR, --topdir=TOPDIR
Make all files relative to this string
-h, --help
Show help message and exit
Table A-5.
rhncfg-manager diff
options
A.3.4. Differentiating between Various Versions
To compare different versions of a file across channels and revisions, use the
-r
flag to indi-
cate which revision of the file should be compared and the
-n
flag to identify the two chan-
nels to be checked. Refer to Section A.3.11
Determining the Number of File Revisions
for
related instructions. Specify only one file name here, since you are comparing the file
against another version of itself. For example:
rhncfg-manager diff-revisions
-n=
channel-label1
-r=
1
-n=
channel-label2
-r=
1
/path/to/file.txt
The output resembles the following:
--- /tmp/dest_path/example-config.txt
2004-01-13 14:36:41
\
config channel: example-channel2
revision: 1
--- /tmp/dest_path/example-config.txt
2004-01-13 14:42:42
\
config channel: example-channel3
revision: 1 @@ -1 +1,20 @@ -foo
+blaaaaaaaaaaaaaaah
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.0.6 (GNU/Linux)
+Comment: For info see http://www.gnupg.org
+
Содержание NETWORK 4.0 -
Страница 1: ...Red Hat Network 4 0 Reference Guide...
Страница 10: ......
Страница 16: ...vi Introduction to the Guide...
Страница 24: ...8 Chapter 1 Red Hat Network Overview...
Страница 40: ...24 Chapter 2 Red Hat Update Agent Figure 2 11 Available Package Updates...
Страница 58: ...42 Chapter 2 Red Hat Update Agent...
Страница 80: ...64 Chapter 5 Red Hat Network Registration Client Figure 5 15 Text Mode Welcome Screen...
Страница 186: ...170 Chapter 7 Monitoring...
Страница 200: ...184 Chapter 8 UNIX Support Guide...
Страница 214: ...198 Appendix A Command Line Config Management Tools...
Страница 274: ...258 Appendix C Probes...
Страница 282: ...266 Glossary...