A.3.3. Differentiating between Latest Config Files


To view the differences between the config files on disk and the latest revisions in a channel, issue the command:
 rhncfg-manager diff --channel=channel-label --dest-file=/path/to/file.txt \ /local/path/to/file
You should see output resembling:
/tmp/dest_path/example-config.txt /home/test/blah/hello_world.txt  
--- /tmp/dest_path/example-config.txt config_channel: example-channel revision: 1  
+++ /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:
Table A.5. rhncfg-manager diff options
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
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.