How To Install flamegraph-stackcollapse-php on Fedora 36

In this tutorial we learn how to install flamegraph-stackcollapse-php in Fedora 36. flamegraph-stackcollapse-php is Stack collapser for PHP

Introduction

In this tutorial we learn how to install flamegraph-stackcollapse-php on Fedora 36.

What is flamegraph-stackcollapse-php

A script for collapsing PHP trace output for consumption by flamegraph.

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

Install flamegraph-stackcollapse-php 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 flamegraph-stackcollapse-php using dnf by running the following command:

sudo dnf -y install flamegraph-stackcollapse-php

Install flamegraph-stackcollapse-php 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 flamegraph-stackcollapse-php using yum by running the following command:

sudo yum -y install flamegraph-stackcollapse-php

How To Uninstall flamegraph-stackcollapse-php on Fedora 36

To uninstall only the flamegraph-stackcollapse-php package we can use the following command:

sudo dnf remove flamegraph-stackcollapse-php

flamegraph-stackcollapse-php Package Contents on Fedora 36

/usr/bin/stackcollapse-xdebug.php
/usr/share/man/man1/stackcollapse-xdebug.php.1.gz

References

Summary

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