Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am building a Node.JS server application for a client, targeted at RedHat EL 6.3. They want the app to be bundled in an RPM. Basically, the RPM should:

  • Install Node.JS and various Node modules (using the NPM command npm install)
  • Populate a folder with the app files (HTML, JavaScript, etc.)
  • Launch an instance of the server

I'm new to RPMs. Is that the kind of thing they can do? How easy would it be for an RPM to do those tasks?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

RPM should not do most of those things. You will need separate packages containing Node.JS and each of its modules, and you will need to make the application package itself require all of those packages. Launching the instance should be done with an initscript contained in the application package. The Fedora Project Package Maintainers page gives a number of resources useful for packagers for both Fedora and similar distros.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.