LoginSignup
0
2

More than 1 year has passed since last update.

RHEL 8にPython 3.9をインストール(AppStream)

Posted at

はじめに

Application Stream(AppStream)を利用してRHEL8にPython 3.9をインストール
参考:RHEL8のパッケージ構成 - BaseOSとApplication Stream - 赤帽エンジニアブログ
   第4章 新機能 Red Hat Enterprise Linux 8 | Red Hat Customer Portal

サポート

本手法で導入した場合、Red Hat Enterprise Linux 8 Application Streams Life Cycle - Red Hat Customer Portalより、2024-05がEOLだと思われる。
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。

LOG

インストール

# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.4 (Ootpa)

# yum install python39
... 略

各種確認

# which python
/usr/bin/which: no python in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

# which python3
/usr/bin/python3

# python3 -V
Python 3.9.2

# yum info python39
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Last metadata expiration check: 0:05:45 ago on Wed May 19 11:30:09 2021.
Installed Packages
Name         : python39
Version      : 3.9.2
Release      : 1.module+el8.4.0+10237+bdc77aac
Architecture : x86_64
Size         : 24 k
Source       : python39-3.9.2-1.module+el8.4.0+10237+bdc77aac.src.rpm
Repository   : @System
From repo    : rhel-8-for-x86_64-appstream-rpms
Summary      : Version 3.9 of the Python interpreter
URL          : https://www.python.org/
License      : Python
Description  : Python 3.9 is an accessible, high-level, dynamically typed, interpreted
             : programming language, designed with an emphasis on code readability.
             : It includes an extensive standard library, and has a vast ecosystem of
             : third-party libraries.
             :
             : The python39 package provides the "python3.9" executable: the reference
             : interpreter for the Python language, version 3.
             : The majority of its standard library is provided in the python39-libs package,
             : which should be installed automatically along with python39.
             : The remaining parts of the Python standard library are broken out into the
             : python39-tkinter and python39-test packages, which may need to be installed
             : separately.
             :
             : Documentation for Python is provided in the python39-docs package.
             :
             : Packages containing additional libraries for Python are generally named with
             : the "python39-" prefix.
             :
             : For the unversioned "python" executable, see manual page "unversioned-python".
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2