August 2017
Intermediate to advanced
278 pages
8h 53m
English
Like the Debian build process, first we'll need to install the package build tools and the additional Extra Packages For Enterprise Linux (EPEL) repository:
sudo yum install yum-utils epel-release mock
Next, update /etc/yum.repos.d/nginx.repo and add the additional source repository:
[nginx-source] name=nginx source repo baseurl=http://nginx.org/packages/mainline/centos/7/SRPMS/ gpgcheck=0 enabled=1
In this example, we'll be using a CentOS 7-based release. Refer to the Packages – RHEL/CentOS section for how to modify it for other CentOS versions.
With the updated repository, we then create a directory for the build, and download the Source RPM (SRPM):
mkdir ~/nginxbuildcd ~/nginxbuildyumdownloader --source nginx
Next, download ...
Read now
Unlock full access