In this chapter, we'll explore the functions used internally by RPM. These functions are available for anyone to use, making it possible to add RPM functionality to new and existing programs. Rather than continually refer to ``the RPM library'' throughout this chapter, we'll use the name of the library's main include file -- rpmlib.