此内容没有您所选择的语言版本。

A.3.4. Differentiating between 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. 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.txtrhncfg-manager diff-revisions -n=channel-label1-r=1-n=channel-label2-r=1/path/to/file.txtrhncfg-manager diff-revisions -n=channel-label1-r=1-n=channel-label2-r=1/path/to/file.txtrhncfg-manager diff-revisions -n=channel-label1-r=1-n=channel-label2-r=1/path/to/file.txtrhncfg-manager diff-revisions -n=channel-label1-r=1-n=channel-label2-r=1/path/to/file.txtrhncfg-manager diff-revisions -n=channel-label1-r=1-n=channel-label2-r=1/path/to/file.txt
Copy to Clipboard Toggle word wrap
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 
+
+iD8DBQA9ZY6vse4XmfJPGwgRAsHcAJ9ud9dabUcdscdcqB8AZP7e0Fua0NmKsdhQCeOWHX 
+VsDTfen2NWdwwPaTM+S+Cow= 
+=Ltp2 
+-----END PGP SIGNATURE----- 
Copy to Clipboard Toggle word wrap
The following table lists the options available for rhncfg-manager diff-revisions:
Expand
Table A.6. rhncfg-manager diff-revisions options
Option Description
-cCHANNEL, --channel=CHANNEL Use this config channel
-rREVISION, --revision=REVISION Use this revision
-h, --help Show help message and exit
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat