How To Install toxiproxy on Fedora 34
Introduction
In this tutorial we learn how to install toxiproxy
on Fedora 34.
What is toxiproxy
Toxiproxy is a framework for simulating network conditions. It’s made specifically to work in testing, CI and development environments, supporting deterministic tampering with connections, but with support for randomized chaos and customization. Toxiproxy is the tool you need to prove with tests that your application doesn’t have single points of failure. Toxiproxy usage consists of two parts. A TCP proxy written in Go (what this repository contains) and a client communicating with the proxy over HTTP. You configure your application to make all test connections go through Toxiproxy and can then manipulate their health via HTTP. See Usage below on how to set up your project.
We can use yum
or dnf
to install toxiproxy
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install toxiproxy.
Install toxiproxy 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 toxiproxy
using dnf
by running the following command:
sudo dnf -y install toxiproxy
Install toxiproxy 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 toxiproxy
using yum
by running the following command:
sudo yum -y install toxiproxy
How To Uninstall toxiproxy on Fedora 34
To uninstall only the toxiproxy
package we can use the following command:
sudo dnf remove toxiproxy
toxiproxy Package Contents on Fedora 34
/etc/default/toxiproxy
/etc/logrotate.d/toxiproxy
/usr/bin/toxiproxy-cli
/usr/bin/toxiproxy-server
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/0cc29ba7ddbecfdd08a5527fec96790e99ac43
/usr/lib/.build-id/12
/usr/lib/.build-id/12/4d188a5c1ad87a7b20ef7e983f4d54a5000106
/usr/lib/systemd/system/toxiproxy.service
/usr/share/doc/toxiproxy
/usr/share/doc/toxiproxy/CHANGELOG.md
/usr/share/doc/toxiproxy/CREATING_TOXICS.md
/usr/share/doc/toxiproxy/README-client.md
/usr/share/doc/toxiproxy/README.md
/usr/share/licenses/toxiproxy
/usr/share/licenses/toxiproxy/LICENSE
/usr/share/man/man1/toxiproxy-cli.1.gz
/usr/share/man/man1/toxiproxy-server.1.gz
/var/lib/toxiproxy
/var/log/toxiproxy
References
Summary
In this tutorial we learn how to install toxiproxy
on Fedora 34 using yum and dnf.