by kazuhisya

kazuhisya / nodejs-rpm

node.js rpm spec

200 Stars 85 Forks Last release: Not found MIT License 349 Commits 244 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

node.js RPM spec

| Blanch | Status | RPM | |:----------|:----------:|:----------:| |

(v9, Current) | Circle CI | FedoraCopr | |
(v8, LTS) | Circle CI | FedoraCopr | |
(v6, LTS) | Circle CI | FedoraCopr | |
(v4, LTS) | Circle CI | FedoraCopr |
  • node.js rpm spec :
  • node.js source :

Compiled Package


$ sudo curl -sL -o /etc/yum.repos.d/khara-nodejs.repo
$ sudo yum install -y nodejs nodejs-npm

fc24 or higher:

$ sudo dnf copr enable khara/nodejs
$ sudo dnf install -y nodejs nodejs-npm

Building the RPM

Distro support


  • RHEL/CentOS 7 x86_64
  • Fedora 25 x86_64 or higher

Probably it works


  • Python 2.7
  • gcc
    4.8 or newer

Docker (el7, el6, el5)

Docker environment for building nodejs rpm. It will help to build and debug.

Build (el7, el6)

setting up:

$ sudo yum install -y yum-utils rpmdevtools make

git clone and make:

$ git clone
# If you want to use other version, You can clone to specify the branch name.
# example: git clone -b v4.x
$ cd nodejs-rpm
$ sudo yum-builddep ./nodejs.spec


$ make rpm

el6 : with Software Collections and Devtoolset

$ scl enable python27 devtoolset-3 'make rpm'

install package:

$ cd ./dist/RPMS/x86_64/
$ sudo yum install ./nodejs-X.X.X-X.el6.x86_64.rpm ./nodejs-npm-X.X.X-X.el6.x86_64.rpm --nogpgcheck

Build (el5: Obsolete)

el5 : with Devtoolset and python27

$ sudo yum install -y epel-release ius-release
$ sudo yum install -y yum-utils rpmdevtools buildsys-macros redhat-rpm-config tar make openssl-devel libstdc++-devel zlib-devel gzip 
$ sudo yum install -y devtoolset-2-gcc-c++ devtoolset-2-binutils python27
$ git clone
$ cd nodejs-rpm
$ rpmdev-setuptree
$ curl -OLk
$ cp *.patch ~/rpmbuild/SOURCES/ ; cp *.md ~/rpmbuild/SOURCES/ ; cp *.tar.gz ~/rpmbuild/SOURCES/ 
$ scl enable devtoolset-2 'rpmbuild -ba ./nodejs.spec'

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.