How to build a rpm file from a source file
This is for the Redhat, Suse, Fedora, and CentOS users. Sometimes when you try to search for rpm packages, the only thing that you find is the source file. You can create a rpm file using this tar.gz or tar.bz2 file:
- save the source file(usually in tar.gz or tar.bz2 format)
- extract the files: tar -xvzf filename.tar.gz or tar -xvjf filename.tar.bz2
- open the folder of the extracted file and find .spec file
- type: rpmbuild -bb filename.spec
- see the error and continue according to the error until you finish creating rpm files
- type: rpm -Uvh filename.rpm to install














Post a comment