appendix-d.html

来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 952 行 · 第 1/2 页

HTML
952
字号


<HTML>

<HEAD>

<TITLE>Maximum RPM (RPM):appendix-d: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=appendix-d //-->

<!-- PAGES=0375-0386 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->





<P><CENTER>

<a href="appendix-c.html">Previous</a> | <a href="ewtoc.html">Table of Contents</a> | <a href="appendix-e.html">Next</a></CENTER></P>











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







<H3><A NAME="1054_ 4">

Apendix D</a></H3>



<H2>



Available Tags for <BR>

--queryformat



</H2>



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











<P>The following tags are all the ones defined at the time this book was written. For the latest

list of available queryformat tags, issue the following command:

</P>



<!-- CODE SNIP //-->

<PRE>

rpm --querytags

</PRE>

<!-- END CODE SNIP //-->



<P>Keep in mind that the list of tags produced by the

--querytags option is the complete list of all tags used by RPM internally (for instance, during package builds). Because of this, some

tags do not produce meaningful output when used in a

--queryformat format string.

</P>



<H3>

D.1. List of --queryformat Tags

</H3>



<P>For every tag in this section, there can be as many as three different pieces of information:

</P>



<UL>

<LI>          A short description of the tag.

<LI>          Whether the data specified by the tag is an array, and, if so, how many members

are present in the array.

<LI>          What modifiers can be used with the tag.

</UL>



<P>The NAME Tag

</P>



<P>The NAME tag is used to display the name of the package.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The VERSION Tag

</P>



<P>The VERSION tag is used to display the version of the packaged software.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The RELEASE Tag

</P>



<P>The RELEASE tag is used to display the release number of the package.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The SERIAL Tag

</P>



<P>The SERIAL tag is used to display the serial number of the package.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



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







<P>The SUMMARY Tag

</P>



<P>The SUMMARY tag is used to display a one-line summation of the packaged software.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The DESCRIPTION Tag

</P>



<P>The DESCRIPTION tag is used to display a detailed summation of the packaged software.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The BUILDTIME Tag

</P>



<P>The BUILDTIME tag is used to display the time and date the package was created.

</P>



<P>Array: No

</P>



<P>Used with modifiers: :date

</P>



<P>The BUILDHOST Tag

</P>



<P>The BUILDHOST tag is used to display the hostname of the system that built the package.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The INSTALLTIME Tag

</P>



<P>The INSTALLTIME tag is used to display the time and date the package was installed.

</P>



<P>Array: No

</P>



<P>Used with modifiers: :date

</P>



<P>The SIZE Tag

</P>



<P>The SIZE tag is used to display the total size, in bytes, of every file installed by this package.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The DISTRIBUTION Tag

</P>



<P>The DISTRIBUTION tag is used to display the distribution this package is a part of.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



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







<P>The VENDOR Tag

</P>



<P>The VENDOR tag is used to display the organization responsible for marketing the package.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The GIF Tag

</P>



<P>The GIF tag is not available for use with

--queryformat.

</P>



<P>The XPM Tag

</P>



<P>The XPM tag is not available for use with

--queryformat.

</P>



<P>The COPYRIGHT Tag

</P>



<P>The COPYRIGHT tag is used to display the copyright terms of the package.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The PACKAGER Tag

</P>



<P>The PACKAGER tag is used to display the person or persons responsible for creating the package.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The GROUP Tag

</P>



<P>The GROUP tag is used to display the group to which the package belongs.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The CHANGELOG Tag

</P>



<P>The CHANGELOG tag is reserved for a future version of RPM.

</P>



<P>The SOURCE Tag

</P>



<P>The SOURCE tag is used to display the source archives contained in the source package file.

</P>



<P>Array: Yes (Size: One entry per source)

</P>



<P>Used with modifiers: N/A

</P>



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







<P>The PATCH Tag

</P>



<P>The PATCH tag is used to display the patch files contained in the source package file.

</P>



<P>Array: Yes (Size: One entry per patch)

</P>



<P>Used with modifiers: N/A

</P>



<P>The URL Tag

</P>



<P>The URL tag is used to display the uniform resource locator that points to additional

information about the packaged software.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The OS Tag

</P>



<P>The OS tag is used to display the operating system for which the package was built.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The ARCH Tag

</P>



<P>The ARCH tag is used to display the architecture for which the package was built.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The PREIN Tag

</P>



<P>The PREIN tag is used to display the package's preinstall script.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The POSTIN Tag

</P>



<P>The POSTIN tag is used to display the package's postinstall script.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The PREUN Tag

</P>



<P>The PREUN tag is used to display the package's preuninstall script.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



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







<P>The POSTUN Tag

</P>



<P>The POSTUN tag is used to display the package's postuninstall script.

</P>



<P>Array: No

</P>



<P>Used with modifiers: N/A

</P>



<P>The FILENAMES Tag

</P>



<P>The FILENAMES tag is used to display the names of the files that comprise the package.

</P>



<P>Array: Yes (Size: One entry per file)

</P>



<P>Used with modifiers: N/A

</P>



<P>The FILESIZES Tag

</P>



<P>The FILESIZES tag is used to display the size, in bytes, of each of the files that comprise

the package.

</P>



<P>Array: Yes (Size: One entry per file)

</P>



<P>Used with modifiers: N/A

</P>



<P>The FILESTATES Tag

</P>



<P>The FILESTATES tag is used to display the state of each of the files that comprise the package.

</P>



<P>Array: Yes (Size: One entry per file)

</P>



<P>Used with modifiers: N/A

</P>



<P>Since there is no modifier to display the file states in human-readable form, it will be

necessary to manually interpret the flag values, based on the

RPMFILE_STATE_xxx #defines contained in rpmlib.h. This file is part of the

rpm-devel package and is also present in the RPM source package.

</P>



<P>The FILEMODES Tag

</P>



<P>The FILEMODES tag is used to display the permissions of each of the files that comprise

the package.

</P>



<P>Array: Yes (Size: One entry per file)

</P>



<P>Used with modifiers: :perms

</P>



<P>The FILEUIDS Tag

</P>



<P>The FILEUIDS tag is used to display the user ID, in numeric form, of each of the files that

comprise the package.

</P>



<P>Array: Yes (Size: One entry per file)

</P>

⌨️ 快捷键说明

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