About
This is a home for packaging various software into Debian and Ubuntu. Most notable package under DEB.SURY.ORG is the PHP packaging.
PHP LTS by Freexian
Commercial long-term support for PHP. PHP LTS is a service prepared together with Freexian: Debian packages for multiple PHP releases on multiple Debian and Ubuntu releases, with dependable security support over an extended period of time. If you use the PHP packages to run business, this is the way to get support and to support this project.
Who am I?
I am a Debian Developer since year 2000, and I have been packaging PHP for Debian since PHP 5. That means the official packages in Debian and Ubuntu are either my work or they are based on my work. The PHP packages in my Debian DPA matches the official packages in Debian. Basically I am saying that you can’t get any closer than that.
Acknowledgements
This service would not exist without the support from companies that trust us and support the project directly or via PHP LTS by Freexian. Many thanks to them!
Packages
Pick the repository and run the command as root or as a user who can use sudo.
The main repository now contains PHP 5.6, PHP 7.0-7.4 and PHP 8.0-8.6 coinstallable together. Browse the repository at packages.sury.org/php.
curl -sSL https://packages.sury.org/php/README.txt | bashWhat the script does
#!/bin/sh
# Adds the PHP repository from DEB.SURY.ORG, see https://deb.sury.org/
#
# To add this repository please do:
#
# curl -sSL https://packages.sury.org/php/README.txt | bash
#
# Everything happens in a function that is called on the last line, so a
# download that breaks off halfway does not run half of the script.
set -e
add_repository() {
if [ "$(id -u)" != "0" ]; then
SUDO=sudo
fi
. /etc/os-release
${SUDO} apt-get update
${SUDO} apt-get -y install ca-certificates curl
${SUDO} curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
${SUDO} dpkg -i /tmp/debsuryorg-archive-keyring.deb
${SUDO} rm -f /etc/apt/sources.list.d/php.list
${SUDO} tee /etc/apt/sources.list.d/php.sources > /dev/null <<EOF
Types: deb
URIs: https://packages.sury.org/php/
Suites: ${VERSION_CODENAME}
Components: main
Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
EOF
${SUDO} apt-get update
}
add_repository
The main Apache2 repository for Debian and Ubuntu. Browse the repository at packages.sury.org/apache2.
curl -sSL https://packages.sury.org/apache2/README.txt | bashWhat the script does
#!/bin/sh
# Adds the Apache2 repository from DEB.SURY.ORG, see https://deb.sury.org/
#
# To add this repository please do:
#
# curl -sSL https://packages.sury.org/apache2/README.txt | bash
#
# Everything happens in a function that is called on the last line, so a
# download that breaks off halfway does not run half of the script.
set -e
add_repository() {
if [ "$(id -u)" != "0" ]; then
SUDO=sudo
fi
. /etc/os-release
${SUDO} apt-get update
${SUDO} apt-get -y install ca-certificates curl
${SUDO} curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
${SUDO} dpkg -i /tmp/debsuryorg-archive-keyring.deb
${SUDO} rm -f /etc/apt/sources.list.d/apache2.list
${SUDO} tee /etc/apt/sources.list.d/apache2.sources > /dev/null <<EOF
Types: deb
URIs: https://packages.sury.org/apache2/
Suites: ${VERSION_CODENAME}
Components: main
Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
EOF
${SUDO} apt-get update
}
add_repository
BIND 9.20 for Debian and Ubuntu. Browse the repository at packages.sury.org/bind-9.20.
curl -sSL https://packages.sury.org/bind-9.20/README.txt | bashWhat the script does
#!/bin/sh
# Adds the BIND 9.20 repository from DEB.SURY.ORG, see https://deb.sury.org/
#
# To add this repository please do:
#
# curl -sSL https://packages.sury.org/bind-9.20/README.txt | bash
#
# Everything happens in a function that is called on the last line, so a
# download that breaks off halfway does not run half of the script.
set -e
add_repository() {
if [ "$(id -u)" != "0" ]; then
SUDO=sudo
fi
. /etc/os-release
${SUDO} apt-get update
${SUDO} apt-get -y install ca-certificates curl
${SUDO} curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
${SUDO} dpkg -i /tmp/debsuryorg-archive-keyring.deb
${SUDO} rm -f /etc/apt/sources.list.d/bind-9.20.list
${SUDO} tee /etc/apt/sources.list.d/bind-9.20.sources > /dev/null <<EOF
Types: deb
URIs: https://packages.sury.org/bind-9.20/
Suites: ${VERSION_CODENAME}
Components: main
Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
EOF
${SUDO} apt-get update
}
add_repository
BIND 9.21, the development branch, for Debian and Ubuntu. Browse the repository at packages.sury.org/bind-9.21.
curl -sSL https://packages.sury.org/bind-9.21/README.txt | bashWhat the script does
#!/bin/sh
# Adds the BIND 9.21 repository from DEB.SURY.ORG, see https://deb.sury.org/
#
# To add this repository please do:
#
# curl -sSL https://packages.sury.org/bind-9.21/README.txt | bash
#
# Everything happens in a function that is called on the last line, so a
# download that breaks off halfway does not run half of the script.
set -e
add_repository() {
if [ "$(id -u)" != "0" ]; then
SUDO=sudo
fi
. /etc/os-release
${SUDO} apt-get update
${SUDO} apt-get -y install ca-certificates curl
${SUDO} curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
${SUDO} dpkg -i /tmp/debsuryorg-archive-keyring.deb
${SUDO} rm -f /etc/apt/sources.list.d/bind-9.21.list
${SUDO} tee /etc/apt/sources.list.d/bind-9.21.sources > /dev/null <<EOF
Types: deb
URIs: https://packages.sury.org/bind-9.21/
Suites: ${VERSION_CODENAME}
Components: main
Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
EOF
${SUDO} apt-get update
}
add_repository
Supported Releases
The main repository follows the life cycle of the distributions themselves:
- Debian – stable, oldstable (if it exists) and the releases covered by Debian LTS
- Ubuntu – LTS releases only, for the Standard Support period
The table shows when the support in the main repository ends. After that the packages are available from PHP LTS by Freexian.
- DEB.SURY.ORG
- PHP LTS by Freexian
- –not available, needs OpenSSL 3
News
I publish the most important changes in the packaging and interesting news in dedicated Mastodon feed at deb@sury.org.
Bug Reporting
DEB.SURY.ORG has now public lightweight issue tracker at CodeBerg. Please report any bugs or feature requests for the repositories there, since my INBOX is a not very reliable way how to keep track on all issue since it has the tendency to grow number of unread messages to numbers over thousand…
Also please excuse me if I don’t respond to your email, my INBOX is really a mess and if you are not lucky, you might get stuck with other unread emails. So pretty please use new issue tracker.
Documentation
The available documentation related to the packages and PPAs is hosted in the Wiki. Everybody can contribute, so if you want to write more documentations on the PHP packages, you are certainly welcome to do so.
Support
The PHP packaging is time consuming and I do this mostly in my free time. Please consider buying commercial support from Freexian if you use PHP packages to run business or donating if you find the PHP packages useful for your projects.
It also warms a heart to know that this project is useful.
- Commercial support:
- Ways how to donate:
Sponsors
This section is dedicated to individuals and companies who made a significant contribution in a given calendar year.
- Laravel - The PHP Framework for Web Artisans
- qwertiko - Managed Hosting made in Germany
- SysEleven - Managed Kubernetes – Made in Germany
- CanTrust - Trusted Canadian web hosting
- BlackHost - Unmetered web hosting company
- Mythic Beasts - No-nonsense hosting with excellent technical support
- Bunny.net - The global content delivery platform that truly hops
- Seravo - Premium Hosting and Upkeep for WordPress
- conet cloud - IT Consulting & IT Services for Your Future
- JetRails - Fully Managed eCommerce Hosting & AWS Solutions







