C++ CSS HTML Java JavaScript MySQL Oracle PERL PHP SQL Unix VBScript XHTML XML Сети
What's in a package?
 

What's in a package?

package. However, the reality is not that magical. Here's a quick overview of the more important parts of an RPM package [1] .

RPM's Package Labels

labels:

package label. Let's look at each one in order:

Component #1: The Software's Name

of related programs bundled together by the package builder. The software names in the packages listed above are: nls and perl. As you can see, the software name is separated from the rest of the package label by a dash.

Component #2: The Software's Version

together, the software version is probably a number of their own choosing. However, if the package consists of one major application, the software version normally comes directly from the application's developer. The actual version specification is quite flexible, as can be seen in the examples above. The versions shown are: 1.0 and 5.001m. A dash separates the software version from the remainder of the package label.

Component #3: The Package's Release

The package release is the most unambiguous part of a package label. It is a number chosen by the package builder. It reflects the number of times the package has been rebuilt using the same version software. Normally, the rebuilds are due to bugs uncovered after the package has been in use for a while. By tradition, the package release starts at 1. The package releases in the example above are: 1 and 4.

Labels And Names: Similar, But Distinct

Package labels are used internally by RPM. For example, if you ask RPM to list every installed package, it will respond with a list of package labels. When a package file is created, part of the filename consists of the package label. There is no technical requirement for this, but it does make it easier to keep track of things.

However, a package file may be renamed, and the new filename won't confuse RPM in the least. That's because the package label is contained within the file. For a fairly technical view of the inside of a package file, refer to Appendix A.

Package-wide Information

Some of the information contained in a package is general in nature. This information includes such items as:

Per-file Information

Each package also contains information about every file contained in the package. The information includes:

Notes

[1]

See Appendix A for complete details on the contents of a .rpm file.

[2]

For more information on RPM's signature checking capability, refer to the section called rpm -K — What Does it Do? in Chapter 7.

[3]

We'll discuss MD5 checksums in greater detail in the section called MD5 Checksum in Chapter 6.

Главная