Install and Manage Python Engine on CentOS

Provides a tutorial example on how to install Python 3.6 on CentOS 8 systems using 'dnf/yum' as the package manager.

The Python script engine is included as part of the CentOS 8 system by default. You don't need to install it yourself. But you can still install its additional modules using the "dnf" package manager.

1. Login as "herong", who has admin privileges.

2. Check the current installed version of Python:

herong$ python3 --version

Python 3.6.8

3. Run "dnf search python3" to find Python package name:

herong$ dnf search python3

python36.x86_64 : Interpreter of the Python programming language
python3-py.noarch : Library with cross-python path, ini-parsing, io, code, log facilities
python3-gpg.x86_64 : gpgme bindings for Python 3
python3-meh.noarch : A python 3 library for handling exceptions
python3-pid.noarch : PID file management library
python3-ply.noarch : Python Lex-Yacc
...

4. Install the "python36" package:

herong$ sudo dnf install python36

Package python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Ok. The installed Python 3.6 package is the latest package from the repository. So there is nothing to be installed.

Table of Contents

 About This Book

 Introduction to Linux Systems

 Cockpit - Web Portal for Administrator

 Process Management

 Files and Directories

 Users and Groups

 File Systems

 Block Devices and Partitions

 LVM (Logical Volume Manager)

 Installing CentOS

 SELinux - Security-Enhanced Linux

 Network Connection on CentOS

 Software Package Manager on CentOS - DNF and YUM

 Running Apache Web Server (httpd) on Linux Systems

 Running PHP Scripts on Linux Systems

 Running MySQL Database Server on Linux Systems

Running Python Scripts on Linux Systems

Install and Manage Python Engine on CentOS

 "pip/pip3" Python Package Manager

 Install MySQL Connector/Python on CentOS

 Install Python 2 Engine on CentOS

 vsftpd - Very Secure FTP Daemon

 Postfix - Mail Transport Agent (MTA)

 Dovecot - IMAP and POP3 Server

 Email Client Tools - Mail User Agents (MUA)

 LDAP (Lightweight Directory Access Protocol)

 GCC - C/C++ Compiler

 Graphics Environments on Linux

 Conda - Environment and Package Manager

 Tools and Utilities

 Administrative Tasks

 References

 Full Version in PDF/EPUB