making RPM

Comments, suggestions, compliments, etc
Post Reply
sandeepkomath
Posts: 1
Joined: 2014/06/17 10:55:04

making RPM

Post by sandeepkomath » 2014/06/17 11:07:33

Hai all ,

Iam working as support specialist in system administration team . Iam looking for creating my own RPM in centos . Can any one helping me to find a solution for this ? ............

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: making RPM

Post by TrevorH » 2014/06/17 11:48:36

The following wiki links may help to get you started:

http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
http://wiki.centos.org/HowTos/RebuildSRPM

Generally speaking, the easiest way to learn is to start by grabbing an existing SRPM from somewhere and rebuilding it. You can also rpm --install the SRPM and look at the spec file. One way to work is to identify a package from a third party repo that you would like a newer version of - grab their SRPM, rebuild it first to make sure it works unaltered then edit the spec file to substitute your newer source tar file and rebuild that.

You could also investigate using mock which lets you build rpms for different versions of the o/s - so can e.g. build for el5 on an el6 system etc.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply