How To Install php-Smarty on Fedora 36

In this tutorial we learn how to install php-Smarty in Fedora 36. php-Smarty is Smarty - the compiling PHP template engine

Introduction

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

What is php-Smarty

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. This implies that PHP code is application logic, and is separated from the presentation. Autoloader

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

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

sudo dnf -y install php-Smarty

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

sudo yum -y install php-Smarty

How To Uninstall php-Smarty on Fedora 36

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

sudo dnf remove php-Smarty

php-Smarty Package Contents on Fedora 36

/usr/share/doc/php-Smarty
/usr/share/doc/php-Smarty/NEW_FEATURES.txt
/usr/share/doc/php-Smarty/README.md
/usr/share/doc/php-Smarty/SMARTY_2_BC_NOTES.txt
/usr/share/doc/php-Smarty/SMARTY_3.0_BC_NOTES.txt
/usr/share/doc/php-Smarty/SMARTY_3.1_NOTES.txt
/usr/share/doc/php-Smarty/change_log.txt
/usr/share/doc/php-Smarty/composer.json
/usr/share/licenses/php-Smarty
/usr/share/licenses/php-Smarty/LICENSE
/usr/share/php/Smarty
/usr/share/php/Smarty/Autoloader.php
/usr/share/php/Smarty/Smarty.class.php
/usr/share/php/Smarty/SmartyBC.class.php
/usr/share/php/Smarty/autoload.php
/usr/share/php/Smarty/bootstrap.php
/usr/share/php/Smarty/debug.tpl
/usr/share/php/Smarty/plugins
/usr/share/php/Smarty/plugins/block.textformat.php
/usr/share/php/Smarty/plugins/function.counter.php
/usr/share/php/Smarty/plugins/function.cycle.php
/usr/share/php/Smarty/plugins/function.fetch.php
/usr/share/php/Smarty/plugins/function.html_checkboxes.php
/usr/share/php/Smarty/plugins/function.html_image.php
/usr/share/php/Smarty/plugins/function.html_options.php
/usr/share/php/Smarty/plugins/function.html_radios.php
/usr/share/php/Smarty/plugins/function.html_select_date.php
/usr/share/php/Smarty/plugins/function.html_select_time.php
/usr/share/php/Smarty/plugins/function.html_table.php
/usr/share/php/Smarty/plugins/function.mailto.php
/usr/share/php/Smarty/plugins/function.math.php
/usr/share/php/Smarty/plugins/modifier.capitalize.php
/usr/share/php/Smarty/plugins/modifier.date_format.php
/usr/share/php/Smarty/plugins/modifier.debug_print_var.php
/usr/share/php/Smarty/plugins/modifier.escape.php
/usr/share/php/Smarty/plugins/modifier.mb_wordwrap.php
/usr/share/php/Smarty/plugins/modifier.regex_replace.php
/usr/share/php/Smarty/plugins/modifier.replace.php
/usr/share/php/Smarty/plugins/modifier.spacify.php
/usr/share/php/Smarty/plugins/modifier.truncate.php
/usr/share/php/Smarty/plugins/modifiercompiler.cat.php
/usr/share/php/Smarty/plugins/modifiercompiler.count_characters.php
/usr/share/php/Smarty/plugins/modifiercompiler.count_paragraphs.php
/usr/share/php/Smarty/plugins/modifiercompiler.count_sentences.php
/usr/share/php/Smarty/plugins/modifiercompiler.count_words.php
/usr/share/php/Smarty/plugins/modifiercompiler.default.php
/usr/share/php/Smarty/plugins/modifiercompiler.escape.php
/usr/share/php/Smarty/plugins/modifiercompiler.from_charset.php
/usr/share/php/Smarty/plugins/modifiercompiler.indent.php
/usr/share/php/Smarty/plugins/modifiercompiler.lower.php
/usr/share/php/Smarty/plugins/modifiercompiler.noprint.php
/usr/share/php/Smarty/plugins/modifiercompiler.string_format.php
/usr/share/php/Smarty/plugins/modifiercompiler.strip.php
/usr/share/php/Smarty/plugins/modifiercompiler.strip_tags.php
/usr/share/php/Smarty/plugins/modifiercompiler.to_charset.php
/usr/share/php/Smarty/plugins/modifiercompiler.unescape.php
/usr/share/php/Smarty/plugins/modifiercompiler.upper.php
/usr/share/php/Smarty/plugins/modifiercompiler.wordwrap.php
/usr/share/php/Smarty/plugins/outputfilter.trimwhitespace.php
/usr/share/php/Smarty/plugins/shared.escape_special_chars.php
/usr/share/php/Smarty/plugins/shared.literal_compiler_param.php
/usr/share/php/Smarty/plugins/shared.make_timestamp.php
/usr/share/php/Smarty/plugins/shared.mb_str_replace.php
/usr/share/php/Smarty/plugins/shared.mb_unicode.php
/usr/share/php/Smarty/plugins/variablefilter.htmlspecialchars.php
/usr/share/php/Smarty/sysplugins
/usr/share/php/Smarty/sysplugins/smarty_cacheresource.php
/usr/share/php/Smarty/sysplugins/smarty_cacheresource_custom.php
/usr/share/php/Smarty/sysplugins/smarty_cacheresource_keyvaluestore.php
/usr/share/php/Smarty/sysplugins/smarty_data.php
/usr/share/php/Smarty/sysplugins/smarty_internal_block.php
/usr/share/php/Smarty/sysplugins/smarty_internal_cacheresource_file.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_append.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_assign.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_block.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_block_child.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_block_parent.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_break.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_call.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_capture.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_child.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_config_load.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_continue.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_debug.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_eval.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_extends.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_for.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_foreach.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_function.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_if.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_include.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_include_php.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_insert.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_ldelim.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_make_nocache.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_nocache.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_parent.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_block_plugin.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_foreachsection.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_function_plugin.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_modifier.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_object_block_function.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_object_function.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_php.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_print_expression.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_registered_block.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_registered_function.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_private_special_variable.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_rdelim.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_section.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_setfilter.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_shared_inheritance.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compile_while.php
/usr/share/php/Smarty/sysplugins/smarty_internal_compilebase.php
/usr/share/php/Smarty/sysplugins/smarty_internal_config_file_compiler.php
/usr/share/php/Smarty/sysplugins/smarty_internal_configfilelexer.php
/usr/share/php/Smarty/sysplugins/smarty_internal_configfileparser.php
/usr/share/php/Smarty/sysplugins/smarty_internal_data.php
/usr/share/php/Smarty/sysplugins/smarty_internal_debug.php
/usr/share/php/Smarty/sysplugins/smarty_internal_errorhandler.php
/usr/share/php/Smarty/sysplugins/smarty_internal_extension_handler.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_addautoloadfilters.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_adddefaultmodifiers.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_append.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_appendbyref.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_assignbyref.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_assignglobal.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_clearallassign.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_clearallcache.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_clearassign.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_clearcache.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_clearcompiledtemplate.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_clearconfig.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_compileallconfig.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_compilealltemplates.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_configload.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_createdata.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_getautoloadfilters.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_getconfigvariable.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_getconfigvars.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_getdebugtemplate.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_getdefaultmodifiers.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_getglobal.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_getregisteredobject.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_getstreamvariable.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_gettags.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_gettemplatevars.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_literals.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_loadfilter.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_loadplugin.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_mustcompile.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_registercacheresource.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_registerclass.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_registerdefaultconfighandler.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_registerfilter.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_registerobject.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_registerplugin.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_registerresource.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_setautoloadfilters.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_setdebugtemplate.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_setdefaultmodifiers.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_unloadfilter.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_unregistercacheresource.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_unregisterfilter.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_unregisterobject.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_unregisterplugin.php
/usr/share/php/Smarty/sysplugins/smarty_internal_method_unregisterresource.php
/usr/share/php/Smarty/sysplugins/smarty_internal_nocache_insert.php
/usr/share/php/Smarty/sysplugins/smarty_internal_parsetree.php
/usr/share/php/Smarty/sysplugins/smarty_internal_parsetree_code.php
/usr/share/php/Smarty/sysplugins/smarty_internal_parsetree_dq.php
/usr/share/php/Smarty/sysplugins/smarty_internal_parsetree_dqcontent.php
/usr/share/php/Smarty/sysplugins/smarty_internal_parsetree_tag.php
/usr/share/php/Smarty/sysplugins/smarty_internal_parsetree_template.php
/usr/share/php/Smarty/sysplugins/smarty_internal_parsetree_text.php
/usr/share/php/Smarty/sysplugins/smarty_internal_resource_eval.php
/usr/share/php/Smarty/sysplugins/smarty_internal_resource_extends.php
/usr/share/php/Smarty/sysplugins/smarty_internal_resource_file.php
/usr/share/php/Smarty/sysplugins/smarty_internal_resource_php.php
/usr/share/php/Smarty/sysplugins/smarty_internal_resource_registered.php
/usr/share/php/Smarty/sysplugins/smarty_internal_resource_stream.php
/usr/share/php/Smarty/sysplugins/smarty_internal_resource_string.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_cachemodify.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_cacheresourcefile.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_capture.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_codeframe.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_filterhandler.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_foreach.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_getincludepath.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_inheritance.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_make_nocache.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_tplfunction.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_updatecache.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_updatescope.php
/usr/share/php/Smarty/sysplugins/smarty_internal_runtime_writefile.php
/usr/share/php/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php
/usr/share/php/Smarty/sysplugins/smarty_internal_template.php
/usr/share/php/Smarty/sysplugins/smarty_internal_templatebase.php
/usr/share/php/Smarty/sysplugins/smarty_internal_templatecompilerbase.php
/usr/share/php/Smarty/sysplugins/smarty_internal_templatelexer.php
/usr/share/php/Smarty/sysplugins/smarty_internal_templateparser.php
/usr/share/php/Smarty/sysplugins/smarty_internal_testinstall.php
/usr/share/php/Smarty/sysplugins/smarty_internal_undefined.php
/usr/share/php/Smarty/sysplugins/smarty_resource.php
/usr/share/php/Smarty/sysplugins/smarty_resource_custom.php
/usr/share/php/Smarty/sysplugins/smarty_resource_recompiled.php
/usr/share/php/Smarty/sysplugins/smarty_resource_uncompiled.php
/usr/share/php/Smarty/sysplugins/smarty_security.php
/usr/share/php/Smarty/sysplugins/smarty_template_cached.php
/usr/share/php/Smarty/sysplugins/smarty_template_compiled.php
/usr/share/php/Smarty/sysplugins/smarty_template_config.php
/usr/share/php/Smarty/sysplugins/smarty_template_resource_base.php
/usr/share/php/Smarty/sysplugins/smarty_template_source.php
/usr/share/php/Smarty/sysplugins/smarty_undefined_variable.php
/usr/share/php/Smarty/sysplugins/smarty_variable.php
/usr/share/php/Smarty/sysplugins/smartycompilerexception.php
/usr/share/php/Smarty/sysplugins/smartyexception.php

References

Summary

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