⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0100-0100.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:




<HTML>

<HEAD>

<TITLE>Maximum RPM (RPM):Using RPM to Verify Package Files:EarthWeb Inc.-</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311054 //-->

<!-- TITLE=Maximum RPM (RPM)//-->

<!-- AUTHOR=Edward Bailey//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=07 //-->

<!-- PAGES=0093-0100 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->









<P><CENTER>

<a href="0097-0099.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="../ch08/0101-0104.html">Next</A>

</CENTER></P>



<A NAME="PAGENUM-100"><P>Page 100</P></A>





<H4><A NAME="ch07_ 11">

7.3.6. -vv: Display Debugging Information

</A></H4>



<P>You'll probably never have to use it, but the

-vv option will give you insights into how RPM verifies packages. Here's an example:

</P>



<!-- CODE //-->

<PRE>

# rpm -Kvv rpm-2.3-1.i386.rpm

D: New Header signature

D: magic: 8e ad e8 01

D: got : 8e ad e8 01

D: Signature size: 236

D: Signature pad : 4

D: sigsize : 240

D: Header + Archive: 278686

D: expected size : 278686

rpm-2.3-1.i386.rpm:

Header+Archive size OK: 278686 bytes

Good signature from user &quot;Red Hat Software, Inc. &lt;redhat@redhat.com&gt;&quot;.

Signature made 1996/12/24 18:37 GMT using 1024-bit key, key ID CBA29BF9

</PRE>

<!-- END CODE //-->





<TABLE BGCOLOR=#FFFF99><TR><TD>WARNING:</TD></TR><TR><TD><BLOCKQUOTE>Because this public key is not certified with a trusted signature,

it is not known with high confidence that this public key actually belongs

to: &quot;Red Hat Software, Inc. &lt;redhat@redhat.com&gt;&quot;.

MD5 sum OK: 8873682c5e036a307dee87d990e75349

#</BLOCKQUOTE></TD></TR></TABLE>





<P>The lines starting with D: represent extra output produced by the

-vv option. This output is normally used by software developers in the course of adding new features to RPM and is

subject to change, but there's no law against looking at it.

</P>



<P>Briefly, the output shows that RPM has detected a new-style signature block, containing

size, MD5 checksum, and PGP signature information. The size of the signature, the size of

the package file's header and archive sections, and the expected size of those sections are all

displayed.

</P>



<H4><A NAME="ch07_ 12">

7.3.7. --rcfile &lt;rcfile&gt;: Use &lt;rcfile&gt; As an Alternate

rpmrc File

</A></H4>



<P>The --rcfile option is used to specify a file containing default settings for RPM.

Normally, this option is not needed. By default, RPM uses

/etc/rpmrc and a file named .rpmrc located in your login directory.

</P>



<P>This option would be used if there were a need to switch between several sets of RPM

defaults. Software developers and package builders will normally be the only people using the

--rcfile option. For more information on rpmrc files, see Appendix B.

</P>



<P><CENTER>

<a href="0097-0099.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="../ch08/0101-0104.html">Next</A>

</CENTER></P>











</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -