Home >> Linux >> How to build a rpm file from a source file in fedora

How to build a rpm file from a source file in fedora

This is for the Redhat, Suse, Fedora, and CentOS users. Sometimes when you try to search for rpm rpmpackages, the only thing that you find is the source file. You can create a rpm file using this tar.gz or tar.bz2 file:

1. save the source file(usually in tar.gz or tar.bz2 format)
2. extract the files: tar -xvzf filename.tar.gz or tar -xvjf filename.tar.bz2
3. open the folder of the extracted file and find .spec file
4. type: rpmbuild -bb filename.spec
5. see the error and continue according to the error until you finish creating rpm files
6. type: rpm -Uvh filename.rpm to install

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*