0123-0124.html

来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 126 行

HTML
126
字号




<HTML>

<HEAD>

<TITLE>Maximum RPM (RPM):The Basics of Developing with RPM: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=10 //-->

<!-- PAGES=0119-0124 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->









<P><CENTER>

<a href="0119-0122.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="../ch11/0125-0128.html">Next</A>

</CENTER></P>



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





<H4><A NAME="ch10_ 7">

10.2. The Engine: RPM

</A></H4>



<P>At the center of the action is RPM. It performs a number of steps during the build process:

</P>



<OL>

<LI>          It executes the commands and macros in the prep section of the spec file.

<LI>          It checks the contents of the file list.

<LI>          It executes the commands and macros in the build section of the spec file.

<LI>          It executes the commands and macros in the install section of the spec file.

Any macros in the file list are executed at this time, too.

<LI>          It creates the binary package file.

<LI>          It creates the source package file.

</OL>



<P>By using different options on the RPM command line, the build process can be stopped at

any of these steps. This makes the initial building of a package that much easier because it is

then possible to see whether each step completed successfully before continuing to the next step.

</P>



<H4><A NAME="ch10_ 8">

10.3. The Outputs

</A></H4>



<P>The end product of this entire process is a source package file and a binary package file.

</P>



<H4><A NAME="ch10_ 9">

10.3.1. The Source Package File

</A></H4>



<P>The source package file is a specially formatted archive that contains the following files:

</P>



<UL>

<LI>          The original compressed

tar file(s)

<LI>          The spec file

<LI>          The patches

</UL>



<P>Because the source package contains everything needed to create the

binary package, create the source package, and provide the original sources, it's a great way to distribute source code.

As mentioned earlier, it's also a great way to archive all the information needed to rebuild a

particular version of the package.

</P>



<H4><A NAME="ch10_ 10">

10.3.2. The Binary RPM

</A></H4>



<P>The binary package file is the one part of the entire RPM building process that is most

visible to the user. It contains the files that comprise the application, along with any additional

information needed to install and erase it. The binary package file is where the rubber hits the road.

</P>



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





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

10.4. And Now&#133;

</A></H4>



<P>Now that we've seen, in broad-brush terms, the way RPM builds packages, let's take a look

at an actual build. Chapter 11, &quot;Building Packages: A Simple Example,&quot; does just that,

showing how simple it can be to build a package.

</P>



<P><CENTER>

<a href="0119-0122.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="../ch11/0125-0128.html">Next</A>

</CENTER></P>











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

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

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