OpenResty® Scalable Web Platform by Extending NGINX with Lua

OpenResty® Linux Packages

Yichun Zhang (agentzh) , 20 Mar 2017 (created 14 Jul 2016)

OpenResty® provides official pre-built packages for the following Linux distributions and versions.

  • RHEL/CentOS
    Version         Supported Architectures
    5.x             x86_64, i386
    6.x             x86_64, i386
    7.x             x86_64
  • Fedora
    Version         Supported Architectures
    24              x86_64, i386
    25              x86_64, i386
    26              x86_64, i386

CentOS

You can add the openresty repository to your CentOS system so as to easily install our packages and receive updates in the future (via the yum update command). To add the repository, just create the file named /etc/yum.repos.d/OpenResty.repo with the following content:

[openresty]
name=Official OpenResty Repository
baseurl=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/epel-$releasever-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/pubkey.gpg
enabled=1
enabled_metadata=1

You can also directly add the repository via the following command:

    sudo yum-config-manager --add-repo https://openresty.org/yum/centos/OpenResty.repo

Users in mainland China can use the following baseurl line instead for better speed:

    baseurl=https://openresty.org/yum/openresty/openresty/epel-$releasever-$basearch/

Or just add the repository via the following command:

    sudo yum-config-manager --add-repo https://openresty.org/yum/cn/centos/OpenResty.repo

To list all the packages in the openresty repository:

    sudo yum --disablerepo="*" --enablerepo="openresty" list available

Then you can install a package, say, openresty, like this:

    sudo yum install openresty

See the OpenResty RPM Packages page for more details on these packages.

If you want to use all the perl-* packages in the openresty repository, then you should first enable the EPEL package repository by running the following command:

    sudo yum install epel-release

RHEL

You can add the openresty repository to your RHEL system so as to easily install our packages and receive updates in the future (via the yum update command). To add the repository, just create the file named /etc/yum.repos.d/OpenResty.repo with the following content:

[openresty]
name=Official OpenResty Repository
baseurl=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/epel-RELEASE-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/pubkey.gpg
enabled=1
enabled_metadata=1

You need to replace RELEASE in the file content above with your RHEL system's major version number, like 5, 6, or 7.

You can also directly add the repository via the following command:

    sudo yum-config-manager --add-repo https://openresty.org/yum/rhel-RELEASE/OpenResty.repo

Do not forget to replace RELEASE with your RHEL system's major version number.

Users in mainland China can use the following baseurl line instead for better speed:

    baseurl=https://openresty.org/yum/openresty/openresty/epel-RELEASE-$basearch/

Or just add the corresponding file via the following command:

    sudo yum-config-manager --add-repo https://openresty.org/yum/cn/rhel-RELEASE/OpenResty.repo

See the OpenResty RPM Packages page for more details on these packages.

If you want to use all the perl-* packages in the openresty repository, then you should first enable the EPEL package repository by running the following command:

    sudo yum install epel-release

Fedora

You can enable the openresty repository on your Fedora system like this:

    sudo dnf install 'dnf-command(copr)'
    sudo dnf copr enable openresty/openresty

Then you can easily install packages from the openresty-openresty repository and receive updates in the future (through the dnf update command). For example, to install the openresty package, we can just run the following command:

    sudo dnf install openresty

To list all the available packages in the openresty-openresty repository, just type

    sudo dnf repo-pkgs openresty-openresty list available

See the OpenResty RPM Packages page for more details on these packages.

Support for More Linux Distributions

We welcome community contributions of packaging sources targeting more Linux distributions like Ubuntu and Debian. Please ensure the resulting packages resemble our existing RPM Packages wherever possible. Thank you very much!

Packages for Non-Linux systems

We also provide pre-built binary packages for the Windows operating system. You can obtain it from the Download page.