How To Install php-pear-HTTP-Request2 on Fedora 36

In this tutorial we learn how to install php-pear-HTTP-Request2 in Fedora 36. php-pear-HTTP-Request2 is Provides an easy way to perform HTTP requests

Introduction

In this tutorial we learn how to install php-pear-HTTP-Request2 on Fedora 36.

What is php-pear-HTTP-Request2

PHP5 rewrite of HTTP_Request package. Provides cleaner API and pluggable Adapters. Currently available are * Socket adapter, based on old HTTP_Request code, * Curl adapter, wraps around PHP’s cURL extension, * Mock adapter, to use for testing packages dependent on HTTP_Request2. Supports POST requests with data and file uploads, basic and digest authentication, cookies, proxies, gzip and deflate encodings, monitoring the request progress with Observers…

We can use yum or dnf to install php-pear-HTTP-Request2 on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pear-HTTP-Request2.

Install php-pear-HTTP-Request2 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-pear-HTTP-Request2 using dnf by running the following command:

sudo dnf -y install php-pear-HTTP-Request2

Install php-pear-HTTP-Request2 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-pear-HTTP-Request2 using yum by running the following command:

sudo yum -y install php-pear-HTTP-Request2

How To Uninstall php-pear-HTTP-Request2 on Fedora 36

To uninstall only the php-pear-HTTP-Request2 package we can use the following command:

sudo dnf remove php-pear-HTTP-Request2

php-pear-HTTP-Request2 Package Contents on Fedora 36

/usr/share/doc/pear/HTTP_Request2
/usr/share/doc/pear/HTTP_Request2/LICENSE
/usr/share/doc/pear/HTTP_Request2/examples
/usr/share/doc/pear/HTTP_Request2/examples/upload-rapidshare.php
/usr/share/pear-data/HTTP_Request2
/usr/share/pear-data/HTTP_Request2/generate-list.php
/usr/share/pear-data/HTTP_Request2/public-suffix-list.php
/usr/share/pear/HTTP
/usr/share/pear/HTTP/Request2
/usr/share/pear/HTTP/Request2.php
/usr/share/pear/HTTP/Request2/Adapter
/usr/share/pear/HTTP/Request2/Adapter.php
/usr/share/pear/HTTP/Request2/Adapter/Curl.php
/usr/share/pear/HTTP/Request2/Adapter/Mock.php
/usr/share/pear/HTTP/Request2/Adapter/Socket.php
/usr/share/pear/HTTP/Request2/ConnectionException.php
/usr/share/pear/HTTP/Request2/CookieJar.php
/usr/share/pear/HTTP/Request2/Exception.php
/usr/share/pear/HTTP/Request2/LogicException.php
/usr/share/pear/HTTP/Request2/MessageException.php
/usr/share/pear/HTTP/Request2/MultipartBody.php
/usr/share/pear/HTTP/Request2/NotImplementedException.php
/usr/share/pear/HTTP/Request2/Observer
/usr/share/pear/HTTP/Request2/Observer/Log.php
/usr/share/pear/HTTP/Request2/Observer/UncompressingDownload.php
/usr/share/pear/HTTP/Request2/Response.php
/usr/share/pear/HTTP/Request2/SOCKS5.php
/usr/share/pear/HTTP/Request2/SocketWrapper.php
/usr/share/tests/pear/HTTP_Request2
/usr/share/tests/pear/HTTP_Request2/MockObserver.php
/usr/share/tests/pear/HTTP_Request2/NetworkConfig.php.dist
/usr/share/tests/pear/HTTP_Request2/ObserverTest.php
/usr/share/tests/pear/HTTP_Request2/Request2
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter/CommonNetworkTest.php
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter/CurlTest.php
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter/EventSequenceObserver.php
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter/HeaderObserver.php
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter/MockTest.php
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter/SlowpokeBody.php
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter/SocketProxyTest.php
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter/SocketTest.php
/usr/share/tests/pear/HTTP_Request2/Request2/Adapter/UploadSizeObserver.php
/usr/share/tests/pear/HTTP_Request2/Request2/CookieJarTest.php
/usr/share/tests/pear/HTTP_Request2/Request2/MultipartBodyTest.php
/usr/share/tests/pear/HTTP_Request2/Request2/ResponseTest.php
/usr/share/tests/pear/HTTP_Request2/Request2Test.php
/usr/share/tests/pear/HTTP_Request2/TestHelper.php
/usr/share/tests/pear/HTTP_Request2/_files
/usr/share/tests/pear/HTTP_Request2/_files/bug_15305
/usr/share/tests/pear/HTTP_Request2/_files/bug_18169
/usr/share/tests/pear/HTTP_Request2/_files/empty.gif
/usr/share/tests/pear/HTTP_Request2/_files/plaintext.txt
/usr/share/tests/pear/HTTP_Request2/_files/response_cookies
/usr/share/tests/pear/HTTP_Request2/_files/response_deflate
/usr/share/tests/pear/HTTP_Request2/_files/response_gzip
/usr/share/tests/pear/HTTP_Request2/_files/response_gzip_broken
/usr/share/tests/pear/HTTP_Request2/_files/response_headers
/usr/share/tests/pear/HTTP_Request2/_network
/usr/share/tests/pear/HTTP_Request2/_network/basicauth.php
/usr/share/tests/pear/HTTP_Request2/_network/bug19934.php
/usr/share/tests/pear/HTTP_Request2/_network/bug20228.php
/usr/share/tests/pear/HTTP_Request2/_network/cookies.php
/usr/share/tests/pear/HTTP_Request2/_network/digestauth.php
/usr/share/tests/pear/HTTP_Request2/_network/download.php
/usr/share/tests/pear/HTTP_Request2/_network/getparameters.php
/usr/share/tests/pear/HTTP_Request2/_network/incompletebody.php
/usr/share/tests/pear/HTTP_Request2/_network/postparameters.php
/usr/share/tests/pear/HTTP_Request2/_network/rawpostdata.php
/usr/share/tests/pear/HTTP_Request2/_network/redirects.php
/usr/share/tests/pear/HTTP_Request2/_network/setcookie.php
/usr/share/tests/pear/HTTP_Request2/_network/timeout.php
/usr/share/tests/pear/HTTP_Request2/_network/uploads.php
/var/lib/pear/pkgxml/php-pear-HTTP-Request2.xml

References

Summary

In this tutorial we learn how to install php-pear-HTTP-Request2 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).