How To Install php-pecl-http on Fedora 36
Introduction
In this tutorial we learn how to install php-pecl-http
on Fedora 36.
What is php-pecl-http
The HTTP extension aims to provide a convenient and powerful set of functionality for major applications. The HTTP extension eases handling of HTTP URLs, dates, redirects, headers and messages in a HTTP context (both incoming and outgoing). It also provides means for client negotiation of preferred language and charset, as well as a convenient way to exchange arbitrary data with caching and resuming capabilities. Also provided is a powerful request and parallel interface. Version 2 is completely incompatible to previous version. Documentation
We can use yum
or dnf
to install php-pecl-http
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-http.
Install php-pecl-http on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install php-pecl-http
using dnf
by running the following command:
sudo dnf -y install php-pecl-http
Install php-pecl-http on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install php-pecl-http
using yum
by running the following command:
sudo yum -y install php-pecl-http
How To Uninstall php-pecl-http on Fedora 36
To uninstall only the php-pecl-http
package we can use the following command:
sudo dnf remove php-pecl-http
php-pecl-http Package Contents on Fedora 36
/etc/php-zts.d/50-http.ini
/etc/php.d/50-http.ini
/usr/lib/.build-id
/usr/lib/.build-id/64
/usr/lib/.build-id/64/f753790e102c6049b07b89adf16775913cbb08
/usr/lib/.build-id/76
/usr/lib/.build-id/76/38a24d0b5b33bbc4b50ab7452eddd91b19eafb
/usr/lib64/php-zts/modules/http.so
/usr/lib64/php/modules/http.so
/usr/share/doc/pecl/pecl_http
/usr/share/doc/pecl/pecl_http/AUTHORS
/usr/share/doc/pecl/pecl_http/BUGS
/usr/share/doc/pecl/pecl_http/CHANGELOG.md
/usr/share/doc/pecl/pecl_http/CONTRIBUTING.md
/usr/share/doc/pecl/pecl_http/CREDITS
/usr/share/doc/pecl/pecl_http/CVE.md
/usr/share/doc/pecl/pecl_http/README.md
/usr/share/doc/pecl/pecl_http/THANKS
/usr/share/doc/pecl/pecl_http/TODO
/usr/share/licenses/php-pecl-http
/usr/share/licenses/php-pecl-http/LICENSE
/var/lib/php/peclxml/php-pecl-http.xml
References
Summary
In this tutorial we learn how to install php-pecl-http
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).