How To Install psysh on Fedora 34

psysh is A runtime developer console, interactive debugger and REPL for PHP

Introduction

In this tutorial we learn how to install psysh on Fedora 34.

What is psysh

A runtime developer console, interactive debugger and REPL for PHP. Autoloader

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

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

sudo dnf -y install psysh

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

sudo yum -y install psysh

How To Uninstall psysh on Fedora 34

To uninstall only the psysh package we can use the following command:

sudo dnf remove psysh

psysh Package Contents on Fedora 34

/usr/bin/psysh
/usr/share/doc/psysh
/usr/share/doc/psysh/README.md
/usr/share/doc/psysh/composer.json
/usr/share/licenses/psysh
/usr/share/licenses/psysh/LICENSE
/usr/share/php/Psy
/usr/share/php/Psy/CodeCleaner
/usr/share/php/Psy/CodeCleaner.php
/usr/share/php/Psy/CodeCleaner/AbstractClassPass.php
/usr/share/php/Psy/CodeCleaner/AssignThisVariablePass.php
/usr/share/php/Psy/CodeCleaner/CallTimePassByReferencePass.php
/usr/share/php/Psy/CodeCleaner/CalledClassPass.php
/usr/share/php/Psy/CodeCleaner/CodeCleanerPass.php
/usr/share/php/Psy/CodeCleaner/EmptyArrayDimFetchPass.php
/usr/share/php/Psy/CodeCleaner/ExitPass.php
/usr/share/php/Psy/CodeCleaner/FinalClassPass.php
/usr/share/php/Psy/CodeCleaner/FunctionContextPass.php
/usr/share/php/Psy/CodeCleaner/FunctionReturnInWriteContextPass.php
/usr/share/php/Psy/CodeCleaner/ImplicitReturnPass.php
/usr/share/php/Psy/CodeCleaner/InstanceOfPass.php
/usr/share/php/Psy/CodeCleaner/LabelContextPass.php
/usr/share/php/Psy/CodeCleaner/LeavePsyshAlonePass.php
/usr/share/php/Psy/CodeCleaner/ListPass.php
/usr/share/php/Psy/CodeCleaner/LoopContextPass.php
/usr/share/php/Psy/CodeCleaner/MagicConstantsPass.php
/usr/share/php/Psy/CodeCleaner/NamespaceAwarePass.php
/usr/share/php/Psy/CodeCleaner/NamespacePass.php
/usr/share/php/Psy/CodeCleaner/NoReturnValue.php
/usr/share/php/Psy/CodeCleaner/PassableByReferencePass.php
/usr/share/php/Psy/CodeCleaner/RequirePass.php
/usr/share/php/Psy/CodeCleaner/ReturnTypePass.php
/usr/share/php/Psy/CodeCleaner/StrictTypesPass.php
/usr/share/php/Psy/CodeCleaner/UseStatementPass.php
/usr/share/php/Psy/CodeCleaner/ValidClassNamePass.php
/usr/share/php/Psy/CodeCleaner/ValidConstantPass.php
/usr/share/php/Psy/CodeCleaner/ValidConstructorPass.php
/usr/share/php/Psy/CodeCleaner/ValidFunctionNamePass.php
/usr/share/php/Psy/Command
/usr/share/php/Psy/Command/BufferCommand.php
/usr/share/php/Psy/Command/ClearCommand.php
/usr/share/php/Psy/Command/Command.php
/usr/share/php/Psy/Command/DocCommand.php
/usr/share/php/Psy/Command/DumpCommand.php
/usr/share/php/Psy/Command/EditCommand.php
/usr/share/php/Psy/Command/ExitCommand.php
/usr/share/php/Psy/Command/HelpCommand.php
/usr/share/php/Psy/Command/HistoryCommand.php
/usr/share/php/Psy/Command/ListCommand
/usr/share/php/Psy/Command/ListCommand.php
/usr/share/php/Psy/Command/ListCommand/ClassConstantEnumerator.php
/usr/share/php/Psy/Command/ListCommand/ClassEnumerator.php
/usr/share/php/Psy/Command/ListCommand/ConstantEnumerator.php
/usr/share/php/Psy/Command/ListCommand/Enumerator.php
/usr/share/php/Psy/Command/ListCommand/FunctionEnumerator.php
/usr/share/php/Psy/Command/ListCommand/GlobalVariableEnumerator.php
/usr/share/php/Psy/Command/ListCommand/MethodEnumerator.php
/usr/share/php/Psy/Command/ListCommand/PropertyEnumerator.php
/usr/share/php/Psy/Command/ListCommand/VariableEnumerator.php
/usr/share/php/Psy/Command/ParseCommand.php
/usr/share/php/Psy/Command/PsyVersionCommand.php
/usr/share/php/Psy/Command/ReflectingCommand.php
/usr/share/php/Psy/Command/ShowCommand.php
/usr/share/php/Psy/Command/SudoCommand.php
/usr/share/php/Psy/Command/ThrowUpCommand.php
/usr/share/php/Psy/Command/TimeitCommand
/usr/share/php/Psy/Command/TimeitCommand.php
/usr/share/php/Psy/Command/TimeitCommand/TimeitVisitor.php
/usr/share/php/Psy/Command/TraceCommand.php
/usr/share/php/Psy/Command/WhereamiCommand.php
/usr/share/php/Psy/Command/WtfCommand.php
/usr/share/php/Psy/ConfigPaths.php
/usr/share/php/Psy/Configuration.php
/usr/share/php/Psy/ConsoleColorFactory.php
/usr/share/php/Psy/Context.php
/usr/share/php/Psy/ContextAware.php
/usr/share/php/Psy/Exception
/usr/share/php/Psy/Exception/BreakException.php
/usr/share/php/Psy/Exception/DeprecatedException.php
/usr/share/php/Psy/Exception/ErrorException.php
/usr/share/php/Psy/Exception/Exception.php
/usr/share/php/Psy/Exception/FatalErrorException.php
/usr/share/php/Psy/Exception/ParseErrorException.php
/usr/share/php/Psy/Exception/RuntimeException.php
/usr/share/php/Psy/Exception/ThrowUpException.php
/usr/share/php/Psy/Exception/TypeErrorException.php
/usr/share/php/Psy/Exception/UnexpectedTargetException.php
/usr/share/php/Psy/ExecutionClosure.php
/usr/share/php/Psy/ExecutionLoop
/usr/share/php/Psy/ExecutionLoop/AbstractListener.php
/usr/share/php/Psy/ExecutionLoop/Listener.php
/usr/share/php/Psy/ExecutionLoop/ProcessForker.php
/usr/share/php/Psy/ExecutionLoop/RunkitReloader.php
/usr/share/php/Psy/ExecutionLoopClosure.php
/usr/share/php/Psy/Formatter
/usr/share/php/Psy/Formatter/CodeFormatter.php
/usr/share/php/Psy/Formatter/DocblockFormatter.php
/usr/share/php/Psy/Formatter/Formatter.php
/usr/share/php/Psy/Formatter/ReflectorFormatter.php
/usr/share/php/Psy/Formatter/SignatureFormatter.php
/usr/share/php/Psy/Formatter/TraceFormatter.php
/usr/share/php/Psy/Input
/usr/share/php/Psy/Input/CodeArgument.php
/usr/share/php/Psy/Input/FilterOptions.php
/usr/share/php/Psy/Input/ShellInput.php
/usr/share/php/Psy/Input/SilentInput.php
/usr/share/php/Psy/Output
/usr/share/php/Psy/Output/OutputPager.php
/usr/share/php/Psy/Output/PassthruPager.php
/usr/share/php/Psy/Output/ProcOutputPager.php
/usr/share/php/Psy/Output/ShellOutput.php
/usr/share/php/Psy/ParserFactory.php
/usr/share/php/Psy/Readline
/usr/share/php/Psy/Readline/GNUReadline.php
/usr/share/php/Psy/Readline/HoaConsole.php
/usr/share/php/Psy/Readline/Libedit.php
/usr/share/php/Psy/Readline/Readline.php
/usr/share/php/Psy/Readline/Transient.php
/usr/share/php/Psy/Reflection
/usr/share/php/Psy/Reflection/ReflectionClassConstant.php
/usr/share/php/Psy/Reflection/ReflectionConstant.php
/usr/share/php/Psy/Reflection/ReflectionConstant_.php
/usr/share/php/Psy/Reflection/ReflectionLanguageConstruct.php
/usr/share/php/Psy/Reflection/ReflectionLanguageConstructParameter.php
/usr/share/php/Psy/Reflection/ReflectionNamespace.php
/usr/share/php/Psy/Shell.php
/usr/share/php/Psy/Sudo
/usr/share/php/Psy/Sudo.php
/usr/share/php/Psy/Sudo/SudoVisitor.php
/usr/share/php/Psy/TabCompletion
/usr/share/php/Psy/TabCompletion/AutoCompleter.php
/usr/share/php/Psy/TabCompletion/Matcher
/usr/share/php/Psy/TabCompletion/Matcher/AbstractContextAwareMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/AbstractDefaultParametersMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/AbstractMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/ClassAttributesMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/ClassMethodDefaultParametersMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/ClassMethodsMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/ClassNamesMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/CommandsMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/ConstantsMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/FunctionDefaultParametersMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/FunctionsMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/KeywordsMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/MongoClientMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/ObjectAttributesMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/ObjectMethodDefaultParametersMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/ObjectMethodsMatcher.php
/usr/share/php/Psy/TabCompletion/Matcher/VariablesMatcher.php
/usr/share/php/Psy/Util
/usr/share/php/Psy/Util/Docblock.php
/usr/share/php/Psy/Util/Json.php
/usr/share/php/Psy/Util/Mirror.php
/usr/share/php/Psy/Util/Str.php
/usr/share/php/Psy/VarDumper
/usr/share/php/Psy/VarDumper/Cloner.php
/usr/share/php/Psy/VarDumper/Dumper.php
/usr/share/php/Psy/VarDumper/Presenter.php
/usr/share/php/Psy/VarDumper/PresenterAware.php
/usr/share/php/Psy/VersionUpdater
/usr/share/php/Psy/VersionUpdater/Checker.php
/usr/share/php/Psy/VersionUpdater/GitHubChecker.php
/usr/share/php/Psy/VersionUpdater/IntervalChecker.php
/usr/share/php/Psy/VersionUpdater/NoopChecker.php
/usr/share/php/Psy/autoload.php
/usr/share/php/Psy/functions.php

References

Summary

In this tutorial we learn how to install psysh on Fedora 34 using yum and dnf.