How do I create a package on Redhat or CentOS 5

  • Queens2LI
  • Born
  • Born
  • Queens2LI
  • Posts: 1

Post 3+ Months Ago

On Redhat or CentOS 5. How do I create a package? From Solaris, I did use pkgmk. Not sure if there is any thing in Redhat? Please let me know.

Thanks.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

install rpmbuild and rpmdevtools, then, as your regular user, do:
Code: [ Select ]
$ rpmdev-setuptree

Once you do that, you'll have a tree that looks like this:
Code: [ Select ]
~/rpmbuild/
  ├── BUILD
  ├── BUILDROOT
  ├── RPMS
  ├── SOURCES
  ├── SPECS
  └── SRPMS
  1. ~/rpmbuild/
  2.   ├── BUILD
  3.   ├── BUILDROOT
  4.   ├── RPMS
  5.   ├── SOURCES
  6.   ├── SPECS
  7.   └── SRPMS

Drop your source in "SOURCES", then create a spec file in "SPECS". Once you have yours, run the following as your regular user from the "SPECS" directory:
Code: [ Select ]
$ rpmbuild -bb mypackage.spec

That's the long and short of it all. There is a ton of information about the specifics out there - Google is your friend. This looks like a good place to start:
http://fedoraproject.org/wiki/How_to_cr ... PM_package

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 85 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.