How To Install python-fn on CentOS 7
Introduction
In this tutorial we learn how to install python-fn
on CentOS 7.
What is python-fn
Despite the fact that Python is not pure-functional programming language, it’s a multi-paradigm PL and it gives you enough freedom to take credits from functional programming approach. There are theoretical and practical advantages to the functional style - Formal provability - Modularity - Composability - Ease of debugging and testing Fn.py library provides you with missing “batteries” to get maximum from functional approach even in mostly-imperative program.
We can use yum
or dnf
to install python-fn
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-fn.
Install python-fn on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install python-fn
using yum
by running the following command:
sudo yum -y install python-fn
Install python-fn on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install python-fn
using dnf
by running the following command:
sudo dnf -y install python-fn
How To Uninstall python-fn on CentOS 7
To uninstall only the python-fn
package we can use the following command:
sudo dnf remove python-fn
References
Summary
In this tutorial we learn how to install python-fn
on CentOS 7 using yum
and dnf
.