Skip to content

Latest commit

 

History

255 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Relay packages and repositories for Linux

For detailed installations instruction see relay.so.

Packaging revisions

Build packages takes an optional revision, left empty for a normal release. To repackage a release without a new upstream version of Relay, dispatch it again with the revision set to 2, then 3, and so on.

Revision 2 versions DEBs 0.50.0-2 and RPMs 0.50.0 Release 2, and adds -2 to the filename. The upstream binaries are still fetched for v0.50.0.

The build skips any package whose filename already exists in this repository, so a new target (another distribution, say) can be added without a revision, while changing an existing package needs one.

Using APT (Debian, Ubuntu)

curl -fsSL "https://repos.r2.relay.so/key.gpg" | sudo apt-key add -
sudo add-apt-repository "deb https://repos.r2.relay.so/deb $(lsb_release -cs) main"

sudo apt install php-relay      # default php version
sudo apt install php8.1-relay   # specific php version
sudo apt install lsphp81-relay  # for litespeed setups

If apt-key or add-apt-repository are deprecated or not available, use:

curl -fsSL "https://repos.r2.relay.so/key.gpg" | sudo gpg --dearmor -o "/usr/share/keyrings/cachewerk.gpg"
echo "deb [signed-by=/usr/share/keyrings/cachewerk.gpg] https://repos.r2.relay.so/deb $(lsb_release -sc) main" \
  | sudo tee "/etc/apt/sources.list.d/cachewerk.list" > /dev/null
sudo apt-get update

Using YUM (CentOS, RHEL, Rocky Linux)

curl -s -o "/etc/yum.repos.d/cachewerk.repo" "https://repos.r2.relay.so/rpm/el.repo"

yum install php-relay        # single php version
yum install php81-php-relay  # multiple php versions
yum install lsphp81-relay    # for litespeed setups

Amazon Linux 2

yum-config-manager --disable cachewerk-el
yum-config-manager --enable cachewerk-el7

Dependencies

If the operating system cannot fill the dependencies (especially hiredis or ck) check out the how the Docker examples are installing the packages, or alternatively install them from source:

# Install hiredis
curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /tmp \
  && USE_SSL=1 make -C /tmp/hiredis-1.2.0 install

# Install Concurrency Kit
curl -L https://github.com/concurrencykit/ck/archive/refs/tags/0.7.2.tar.gz | tar -xzC /tmp \
  && cd /tmp/ck-0.7.2 && ./configure && make -j$(nproc) && make install

About

Relay packages and repositories for Debian, Ubuntu and CentOS.

Topics

Resources

Code of conduct

Security policy

Stars

21 stars

Watchers

5 watching

Forks

Used by

Contributors

Languages