Current Python version
$ python --version
or
$ python -V
[ Execution Log ]
[gangserver@localhost ~]$ python --version
Python 3.9.21
Install Python 3.13
$ sudo dnf install python3.13
or
$ sudo yum install python3.13
[ Execution Log ]
[gangserver@localhost ~]$ sudo dnf install python3.13
[sudo] gangserver의 암호:
마지막 메타자료 만료확인(0:10:32 이전): 2025년 08월 17일 (일) 오후 01시 04분 30초.
종속성이 해결되었습니다.
================================================================================
꾸러미 구조 버전 저장소 크기
================================================================================
설치 중:
python3.13 x86_64 3.13.5-4.el9 epel 30 k
종속 꾸러미 설치 중:
python3.13-libs x86_64 3.13.5-4.el9 epel 9.3 M
python3.13-pip-wheel noarch 25.1.1-1.el9 epel 1.2 M
연결 요약
================================================================================
설치 3 꾸러미
전체 내려받기 크기: 11 M
설치된 크기 : 43 M
진행할까요? [y/N]: y
꾸러미 내려받기 중:
(1/3): python3.13-3.13.5-4.el9.x86_64.rpm 251 kB/s | 30 kB 00:00
(2/3): python3.13-pip-wheel-25.1.1-1.el9.noarch 3.0 MB/s | 1.2 MB 00:00
(3/3): python3.13-libs-3.13.5-4.el9.x86_64.rpm 5.0 MB/s | 9.3 MB 00:01
--------------------------------------------------------------------------------
합계 3.7 MB/s | 11 MB 00:02
연결 확인 실행 중
연결 확인에 성공했습니다.
연결 시험 실행 중
연결 시험에 성공했습니다.
연결 실행 중
준비 중 : 1/1
설치 중 : python3.13-pip-wheel-25.1.1-1.el9.noarch 1/3
설치 중 : python3.13-libs-3.13.5-4.el9.x86_64 2/3
설치 중 : python3.13-3.13.5-4.el9.x86_64 3/3
구현 중 : python3.13-3.13.5-4.el9.x86_64 3/3
확인 중 : python3.13-3.13.5-4.el9.x86_64 1/3
확인 중 : python3.13-libs-3.13.5-4.el9.x86_64 2/3
확인 중 : python3.13-pip-wheel-25.1.1-1.el9.noarch 3/3
설치되었습니다:
python3.13-3.13.5-4.el9.x86_64 python3.13-libs-3.13.5-4.el9.x86_64
python3.13-pip-wheel-25.1.1-1.el9.noarch
완료되었습니다!
Move to /usr/bin directory and check Python executable file
$ cd /usr/bin
$ ls -al python*
[ Execution Log ]
[gangserver@localhost ~]$ cd /usr/bin
[gangserver@localhost bin]$ ls -al python*
lrwxrwxrwx. 1 root root 9 7월 2 09:44 python -> ./python3
lrwxrwxrwx. 1 root root 9 7월 2 09:44 python3 -> python3.9
-rwxr-xr-x. 1 root root 15448 7월 29 21:12 python3.13
-rwxr-xr-x. 1 root root 15448 7월 2 09:44 python3.9
python is linked to python3 and python3 is linked to python3.9 via symbolic links.
Change python3 symbolic link from python3.9 to python3.13
$ sudo ln -Tfs python3.13 python3
$ ls -al python*
[ Execution Log ]
[gangserver@localhost bin]$ sudo ln -Tfs python3.13 python3
[sudo] gangserver의 암호:
[gangserver@localhost bin]$ ls -al python*
lrwxrwxrwx. 1 root root 9 7월 2 09:44 python -> ./python3
lrwxrwxrwx. 1 root root 10 8월 17 13:20 python3 -> python3.13
-rwxr-xr-x. 1 root root 15448 7월 29 21:12 python3.13
-rwxr-xr-x. 1 root root 15448 7월 2 09:44 python3.9
Check Python version and Run Python
$ cd
$ python --version
$ python
[ Execution Log ]
[gangserver@localhost bin]$ cd
[gangserver@localhost ~]$ python --version
Python 3.13.5
[gangserver@localhost ~]$ python
Python 3.13.5 (main, Jul 28 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[gangserver@localhost ~]$
'OS > Rocky Linux' 카테고리의 다른 글
Rocky Linux 9 (9.5) OpenJDK 11 Install / Uninstall (0) | 2025.08.17 |
---|---|
Rocky Linux 9 (9.5) OpenJDK 1.8.0 Install / Uninstall (0) | 2025.08.17 |
Rocky Linux 9 (9.5) Visual Studio Code install (0) | 2025.04.02 |
Rocky Linux 9 (9.5) Python 3.12 version install (0) | 2025.04.02 |
Rocky Linux 9 (9.5) libgtk-x11-2.0.so.0 error (0) | 2025.04.02 |