How To Install uhttpmock on Fedora 34
Introduction
In this tutorial we learn how to install uhttpmock
on Fedora 34.
What is uhttpmock
uhttpmock is a project for mocking web service APIs which use HTTP or HTTPS. It provides a library, libuhttpmock, which implements recording and playback of HTTP request–response traces. uhttpmock 0.5.0 13.fc34 x86_64 44 k uhttpmock-0.5.0-13.fc34.src.rpm fedora HTTP web service mocking library https LGPLv2 uhttpmock is a project for mocking web service APIs which use HTTP or HTTPS. It provides a library, libuhttpmock, which implements recording and playback of HTTP request–response traces.
We can use yum
or dnf
to install uhttpmock
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install uhttpmock.
Install uhttpmock on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install uhttpmock
using dnf
by running the following command:
sudo dnf -y install uhttpmock
Install uhttpmock on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install uhttpmock
using yum
by running the following command:
sudo yum -y install uhttpmock
How To Uninstall uhttpmock on Fedora 34
To uninstall only the uhttpmock
package we can use the following command:
sudo dnf remove uhttpmock
uhttpmock Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/39
/usr/lib/.build-id/39/b95346c1138ff7612e64f239a2c775eda321ca
/usr/lib64/girepository-1.0/Uhm-0.0.typelib
/usr/lib64/libuhttpmock-0.0.so.0
/usr/lib64/libuhttpmock-0.0.so.0.2.0
/usr/share/doc/uhttpmock
/usr/share/doc/uhttpmock/AUTHORS
/usr/share/doc/uhttpmock/NEWS
/usr/share/doc/uhttpmock/README
/usr/share/licenses/uhttpmock
/usr/share/licenses/uhttpmock/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/3910fcaa69194e15affd54913b7edc3b5563ed
/usr/lib/girepository-1.0/Uhm-0.0.typelib
/usr/lib/libuhttpmock-0.0.so.0
/usr/lib/libuhttpmock-0.0.so.0.2.0
/usr/share/doc/uhttpmock
/usr/share/doc/uhttpmock/AUTHORS
/usr/share/doc/uhttpmock/NEWS
/usr/share/doc/uhttpmock/README
/usr/share/licenses/uhttpmock
/usr/share/licenses/uhttpmock/COPYING
References
- [uhttpmock website](https://gitlab.com/groups/uhttpmock https://gitlab.com/groups/uhttpmock)
Summary
In this tutorial we learn how to install uhttpmock
on Fedora 34 using yum and dnf.