[CentOS] completely custom rpm's

Will McDonald wmcdonald at gmail.com
Thu Jun 22 14:14:54 UTC 2006


On 22/06/06, Tom Brown <tom at ng23.net> wrote:
> Hi
>
> During a 'normal' install i have to add a bunch of users and modify some
> files such as DNS, Syslog, ssh key files etc
>
> While i can do this with a shell script post install it would be VERY
> neat to just have all these changes packaged up into an rpm and i can
> then just rpm -i this post install.
>
> Can i do this and if so can anyone point me to a how-to that would help
> me through the steps required.

I suspect the docs are the best place to start...

http://www.rpm.org/max-rpm/p5208.html

http://www.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html

It should be relatively simple to create a .spec that doesn't actually
*build* anything, just executes scripts.

Will.



More information about the CentOS mailing list