Installation and Setup

Along with installing rpmdevtools you should also install rpmlint, which is a tool used to check packages for quality.  You can search for these packages with the package manager or run this command:

[root@localhost ~]$ sudo yum install rpmdevtools rpmlint

Yum should determine all the dependencies for you.  After everything installs you need to setup the rpm build tree, which is where you will work on rpms that you are creating.  Run this command in your home folder:

[user@localhost ~]$ rpmdev-setuptree

This will create the directory rpmbuild in your home directory.  Switch into the rpmbuild directory and use the ls command to list the directories in here.  You should see the following:

[user@localhost ~]$ cd rpmbuild/; ls

The BUILD folder is where all files go which are created during a build of the package when you create the rpm.  If the package builds correctly then any rpm(s) created will go into the RPMS and SRPMS folders.  The SRPMS directory only contains source rpms.  Specfiles are basically instructions on how the rpm is built and they go in the SPECS folder.  The source tar file should go into the SOURCES directory along with any patches.

Home Next

One Response to “Installation and Setup”

  1. How to create rpm? Says:

    […] in to get rid of this advertisement]'); I m referring below article for creating rpm.…ion-and-setup/ As per the document i will need rpmdevtools and rpmlint to begin with. However i have yum […]

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

%d bloggers like this: