Installation guide
Table 1.5. rhncfg-m anager diff options
Option Description
-c CHANNEL, --channel=CHANNEL Get file(s) from this config channel
-r REVISION, --revision=REVISION Use this revision
-d DEST_FILE, --dest-file=DEST_FILE Upload the file as this path
-t T OPDIR, --topdir=TOPDIR Make all files relative to this string
-h, --help Show help message and exit
1.1.3.4 . Differentiating bet ween Various Versions
To compare different versions of a file across channels and revisions, use the -r flag to indicate which
revision of the file should be compared and the -n flag to identify the two channels to be checked. See
Section 1.1.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-revi sions -n=channel-label1 -r=1 -n= channel-label2 -r=1
/path/to/file.txt
The output resembles the following:
--- /tm p/dest_path/example-config.txt 2004-01-13 14:36:41 \ config channel:
exam ple-channel2 revision: 1
--- /tm p/dest_path/example-config.txt 2004-01-13 14:42:42 \ config channel:
exam ple-channel3 revision: 1
@@ -1 +1,20 @@
-foo
+blah
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.0.6 (GNU/Linux)
+Com ment: For info see http://www.gnupg.org
+
+iD8DBQA9ZY6vse4XmfJPGwgRAsHcAJ9ud9dabUcdscdcqB8AZP7e0Fua0NmKsdhQCeOWHX
+VsDTfen2NWdwwPaTM+S+Cow=
+=Ltp2
+-----END PGP SIGNATURE-----
The following table lists the options available for rhncfg-m anager diff-revisions:
Table 1.6. rhncfg-m anager diff-revisions options
Option Description
-c CHANNEL, --channel=CHANNEL Use this config channel
-r REVISION, --revision=REVISION Use this revision
-h, --help Show help message and exit
1.1.3.5. Downloading All Files in a Channel
To download all the files in a channel to disk, create a directory and issue the following command:
rhncfg-manager download-channel channel-label --topdir .
Chapter 1. Red Hat Satellite Information
17