debpear(1)
π debpear β bestie's guide to the manual page π
okay so picture this: you're in the General Commands Manual, you flip to debpear(1), and suddenly your whole PEAR-to-Debian pipeline is β¨handledβ¨. that's the vibe. let's get into it π«Ά
πΈ NAME πΈ
debpear β the lil icon that automatically builds and installs PEAR packages as Debian packages. no cap, it does the whole thing for you. π
β¨ SYNOPSIS β¨
debpear [options] <pear-package-name>
π¦ DESCRIPTION π¦
so debpear is literally a tool that automatically creates and builds a Debian package out of a PHP PEAR package. here's the glow-up sequence, step by step:
- it downloads the PEAR package from
pear.php.netπ - then, by looking into it, it creates the corresponding Debian package π
- and eventually it also installs it for you π
it's giving "I got you, bestie" energy fr fr.
π§ PARAMETERS π§
<pear-package-name>β this is the PEAR package name you wanna install, exactly as you'd see it on the http://pear.php.net/ site. make sure you respect the case in the name of the package (for example:Package_NAME). yes, case matters, don't play with it π
π OPTIONS π
--build-dir|-bβ tells debpear where the Debian package is gonna be built. pick your spot, queen ποΈ--verbose|-vβ makesdebpearmore verbose. more words, more info, more β¨contentβ¨.--channel|-cchannel-alias β specify the channel-alias, which comes from thepear-channelspackage βpearandpeclchannel. π--tarball|-ttarball--pkg-version|-pvpkg-version [--wget|-wURL] β do not use"pear download"to obtain the PEAR package from upstream authors. instead, use tarball and use pkg-version when building the package. and eventually also download the tarball from URL usingwgetbefore building. lowkey the DIY route π§°--install|-iβ install the resulting debian package on your system. > β οΈ note that you must be root to use this option. if you aren't root, thendebpearwill try to get root usingsudo. so like, it'll try, but you've been warned π
π EXAMPLE π
okay bestie, examples time, this is the fun part:
debpear -i Auth_RADIUS
this will create a php-auth-radius package in ./build-area, and automatically install it. and why does it do that? because it's written in the package.xml shipped with Auth_RADIUS at pear.php.net, php-auth-radius will depend on php5-radius. iykyk π₯
debpear -t current.tgz -pv 1.3.1 -w
http://downloads.jasig.org/cas-clients/php/current.tgz CAS
this one downloads cas-clients from http://downloads.jasig.org/cas-clients/php/current.tgz, as current.tgz in the current directory, then builds it as if it was downloaded as CAS-1.3.1.tgz by "pear download". iconic behaviour honestly β
debpear -c pecl gnupg
this will create a php-gnupg package from the pecl.php.net channel. πΈ
debpear -c phpunit DbUnit
this will create a php-dbunit package from the pear.phpunit.de channel. π
π IMPORTANT π
okay now the serious part, bestie, don't skip this one π
note that thedebian/copyrightfile generated bydebpearisn't good enough for redistribution of the created packages. you should carefully review the PEAR package license before doing so. π¨
also, debpear has been created for convenience, but it will never replace the manual work of an experienced Debian maintainer for creating PEAR packages. it can, however, be used to create a template package quickly, before a careful review, in order to save time building a Debian PEAR package. so like β a starting point, not a final answer. main character tool, but you're still the main character π
π AUTHORS π
debpear has been written by Thomas Goirand <zigo@debian.org>, and is maintained inside the PKG PHP PEAR Debian team, that can be reached at: <pkg-php-pear@lists.alioth.debian.org>. π
and that's the whole page, bestie!! this was debpear(1) from the General Commands Manual, and yes, the page footer is literally just debpear(1) again β the manual really said "signature look, no date, no version, just vibes" πβ¨ π¦π
π¦ where this page comes from
- debian bookworm: debpear 0.5+nmu1 Β· LGPL-2.1-only
- ubuntu jammy: debpear 0.5 Β· LGPL-2.1-only
- ubuntu noble: debpear 0.5+nmu1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms