How To Install php-kukulich-fshl on Fedora 36
Introduction
In this tutorial we learn how to install php-kukulich-fshl
on Fedora 36.
What is php-kukulich-fshl
FSHL is a free, open source, universal, fast syntax highlighter written in PHP. A very fast parser performs syntax highlighting for few languages and produces a HTML output. To use this library, you just have to add, in your project require_once ‘/usr/share/php/FSHL/autoload.php’;
We can use yum
or dnf
to install php-kukulich-fshl
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-kukulich-fshl.
Install php-kukulich-fshl 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-kukulich-fshl
using dnf
by running the following command:
sudo dnf -y install php-kukulich-fshl
Install php-kukulich-fshl 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-kukulich-fshl
using yum
by running the following command:
sudo yum -y install php-kukulich-fshl
How To Uninstall php-kukulich-fshl on Fedora 36
To uninstall only the php-kukulich-fshl
package we can use the following command:
sudo dnf remove php-kukulich-fshl
php-kukulich-fshl Package Contents on Fedora 36
/usr/share/doc/php-kukulich-fshl
/usr/share/doc/php-kukulich-fshl/README.md
/usr/share/doc/php-kukulich-fshl/composer.json
/usr/share/licenses/php-kukulich-fshl
/usr/share/licenses/php-kukulich-fshl/LICENSE
/usr/share/php/FSHL
/usr/share/php/FSHL/Generator.php
/usr/share/php/FSHL/Highlighter.php
/usr/share/php/FSHL/Highlighter.php.pr13
/usr/share/php/FSHL/Lexer
/usr/share/php/FSHL/Lexer.php
/usr/share/php/FSHL/Lexer/Cache
/usr/share/php/FSHL/Lexer/Cache/Cpp.php
/usr/share/php/FSHL/Lexer/Cache/Css.php
/usr/share/php/FSHL/Lexer/Cache/Html.php
/usr/share/php/FSHL/Lexer/Cache/HtmlOnly.php
/usr/share/php/FSHL/Lexer/Cache/Java.php
/usr/share/php/FSHL/Lexer/Cache/Javascript.php
/usr/share/php/FSHL/Lexer/Cache/Minimal.php
/usr/share/php/FSHL/Lexer/Cache/Neon.php
/usr/share/php/FSHL/Lexer/Cache/Php.php
/usr/share/php/FSHL/Lexer/Cache/Python.php
/usr/share/php/FSHL/Lexer/Cache/Sql.php
/usr/share/php/FSHL/Lexer/Cache/Texy.php
/usr/share/php/FSHL/Lexer/Cpp.php
/usr/share/php/FSHL/Lexer/Css.php
/usr/share/php/FSHL/Lexer/Html.php
/usr/share/php/FSHL/Lexer/HtmlOnly.php
/usr/share/php/FSHL/Lexer/Java.php
/usr/share/php/FSHL/Lexer/Javascript.php
/usr/share/php/FSHL/Lexer/Minimal.php
/usr/share/php/FSHL/Lexer/Neon.php
/usr/share/php/FSHL/Lexer/Php.php
/usr/share/php/FSHL/Lexer/Python.php
/usr/share/php/FSHL/Lexer/Sql.php
/usr/share/php/FSHL/Lexer/Texy.php
/usr/share/php/FSHL/Output
/usr/share/php/FSHL/Output.php
/usr/share/php/FSHL/Output/Html.php
/usr/share/php/FSHL/Output/HtmlManual.php
/usr/share/php/FSHL/autoload.php
References
Summary
In this tutorial we learn how to install php-kukulich-fshl
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).