Create RPM and Packaging process



  1. Download the RPM package
  2. Run “rpmdev-setuptree”    

–The rpmdev-setuptree program will create the ~/rpmbuild directory and a set of subdirectories (e.g. SPECS and BUILD), which you will use for creating your packages. The ~/.rpmmacros file is also created, which can be used for setting various options.

3.  Run “cp FileName.tar.gz ~/rpmbuild/SOURCES/”   change the .spec file in the ~/rpmbuild/SPECS directory and name it “FileNAME.spec”

Change directory to ~/rpmbuild/SPECS and run “rpmbuild –ba FileName.spec”




yum groupinstall “Fedora Packager”


rpmdev-wipetree  (Be sure to save any files you need from your previous build activity before                                   wiping the tree.)

yumdownloader – -source nameof package

rpm –i nameofpackage*.src.rpm

cd ~/rpmbuild/SPECS

rpmbuild -ba nameofpackage.spec


—Rebuild From SRPMS

rpmbuild –rebuild nameofpackage*.src.rpm


—Creating a New Package

rum “rpm dev-newspec packagename” in ~/rpmbuild/SPECS



The rpmlint tool tests spec files, source RPMs, and binary RPMs to verify that they were created in compliance with the Fedora packaging guidelines.


One thought on “Create RPM and Packaging process

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s