2.4.2. Testing a Spec File, Binary, and Source Package
These steps show how to test a spec file, a binary package, and a source package with the rpmlint utility.
Procedure 2.5. Testing a spec file, binary, and source package with rpmlint
Change to the ~/rpmbuild/SPECS/
directory in the buildroot environment and run the following command:
rpmlint package.spec ../RPMS/*/package*.rpm ../SRPMS/package*.rpm
After running the command, rpmlint will build binary packages with debugging information.
Change to the ~/rpmbuild/RPMS/architecture/
directory to locate the binary packages that were built with rpmlint.
To check the files and their permissions included in the binary packages, use the rpmls
command:
rpmls *.rpm
If the included files and their permissions are correct, proceed with running the following command as root to install the included files:
rpm -ivp package.rpm
After a successful installation, you can test the installed files on your system.
After you have finished testing of the installed files, run the following command to uninstall the previously installed packages:
rpm -e package.rpm