Skip to content

Commit b9c6440

Browse files
authored
Merge pull request #529 from sboldyreva/claude/elsdoc-165-flkP0
alt-python: add Alpine versions and instruction
2 parents 183d3f8 + 3033c0c commit b9c6440

1 file changed

Lines changed: 50 additions & 33 deletions

File tree

docs/els-for-runtimes/python/README.md

Lines changed: 50 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ alt-python provides a more flexible and convenient environment for working with
2424

2525
| Operating Systems | Package Type | OS Version | Python versions |
2626
| :----------------------------------------------------------: | :----------: | :--------------------------------: | :---------------------------: |
27-
| EL 7 (CentOS, CloudLinux, Oracle Linux, etc.) | RPM | 7.x | 2.7, 3.6 |
28-
| EL 8 (CentOS, CentOS Stream, CloudLinux, Oracle Linux, etc.) | RPM | 8.x | 2.7, 3.6 |
29-
| EL 9 (AlmaLinux, CentOS, CloudLinux, Oracle Linux, etc.) | RPM | 9.x | 2.7, 3.6 |
30-
| EL 10 (AlmaLinux, CloudLinux, Oracle Linux, etc.) | RPM | 10.x | 2.7, 3.6 |
31-
| Ubuntu | DEB | 16.04, 18.04, 20.04, 22.04, 24.04 | 2.7, 3.6 |
32-
| Debian | DEB | 10, 11 | 2.7, 3.6 |
33-
| Debian | DEB | 12, 13 | 2.7, 3.6, 3.7, 3.8, 3.9 |
27+
| EL 7 (CentOS, CloudLinux, Oracle Linux, etc.) | RPM | 7.x | 2.7, 3.6 |
28+
| EL 8 (CentOS, CentOS Stream, CloudLinux, Oracle Linux, etc.) | RPM | 8.x | 2.7, 3.6 |
29+
| EL 9 (AlmaLinux, CentOS, CloudLinux, Oracle Linux, etc.) | RPM | 9.x | 2.7, 3.6 |
30+
| EL 10 (AlmaLinux, CloudLinux, Oracle Linux, etc.) | RPM | 10.x | 2.7, 3.6 |
31+
| Ubuntu | DEB | 16.04, 18.04, 20.04, 22.04, 24.04 | 2.7, 3.6 |
32+
| Debian | DEB | 10, 11 | 2.7, 3.6 |
33+
| Debian | DEB | 12, 13 | 2.7, 3.6, 3.7, 3.8, 3.9 |
34+
| Alpine Linux | APK | 3.22, 3.23 | 3.6, 3.7, 3.8, 3.9 |
3435

3536
**Supported architecture:** x86_64 (64-bit)
3637

@@ -51,7 +52,8 @@ alt-python provides a more flexible and convenient environment for working with
5152

5253
<CodeTabs :tabs="[
5354
{ title: 'RPM', content: `wget https://repo.alt.tuxcare.com/alt-python-els/install-els-alt-python-rpm-repo.sh` },
54-
{ title: 'DEB', content: `wget https://repo.alt.tuxcare.com/alt-python-els/install-els-alt-python-deb-repo.sh` }
55+
{ title: 'DEB', content: `wget https://repo.alt.tuxcare.com/alt-python-els/install-els-alt-python-deb-repo.sh` },
56+
{ title: 'APK', content: `wget https://repo.alt.tuxcare.com/alt-python-els/install-els-alt-python-apk-repo.sh` }
5557
]" />
5658

5759
2. Run the installer script with your license key
@@ -60,7 +62,8 @@ alt-python provides a more flexible and convenient environment for working with
6062

6163
<CodeTabs :tabs="[
6264
{ title: 'RPM', content: `sh install-els-alt-python-rpm-repo.sh --license-key XXX-XXXXXXXXXXXX` },
63-
{ title: 'DEB', content: `bash install-els-alt-python-deb-repo.sh --license-key XXX-XXXXXXXXXXXX` }
65+
{ title: 'DEB', content: `bash install-els-alt-python-deb-repo.sh --license-key XXX-XXXXXXXXXXXX` },
66+
{ title: 'APK', content: `sh install-els-alt-python-apk-repo.sh --license-key XXX-XXXXXXXXXXXX` }
6467
]" />
6568

6669
3. Install a Python version
@@ -69,16 +72,46 @@ alt-python provides a more flexible and convenient environment for working with
6972

7073
<CodeTabs :tabs="[
7174
{ title: 'RPM', content: `yum install alt-python36 --enablerepo crb` },
72-
{ title: 'DEB', content: `apt-get install alt-python36` }
75+
{ title: 'DEB', content: `apt-get install alt-python36` },
76+
{ title: 'APK', content: `apk add alt-python36` }
77+
]" />
78+
79+
To see available packages:
80+
81+
<CodeTabs :tabs="[
82+
{ title: 'RPM', content: `yum list available 'alt-python*'` },
83+
{ title: 'DEB', content: `apt list -a | grep alt-python` },
84+
{ title: 'APK', content: `apk search alt-python` }
7385
]" />
7486

7587
4. Verify the installation
7688

77-
`alt-python` versions are installed alongside the system default. To use a specific version:
89+
Check that the binary exists and returns the expected version:
90+
91+
```text
92+
/opt/alt/<python-version>/bin/python3 -V
93+
```
94+
95+
Optionally, verify execution:
96+
97+
```text
98+
/opt/alt/<python-version>/bin/python3 -c "print('Hello, World!')"
99+
```
100+
101+
To use this version as default in the current shell:
102+
103+
```text
104+
export PATH=/opt/alt/<python-version>/bin:$PATH
105+
python3 -V
106+
which python3
107+
```
108+
109+
5. Update packages
78110

79111
<CodeTabs :tabs="[
80-
{ title: 'RPM', content: rpmex },
81-
{ title: 'DEB', content: debex }
112+
{ title: 'RPM', content: `yum update 'alt-python*'` },
113+
{ title: 'DEB', content: `apt-get update && apt-get --only-upgrade install 'alt-python*'` },
114+
{ title: 'APK', content: `apk update && apk upgrade 'alt-python*'` }
82115
]" />
83116

84117
</ELSSteps>
@@ -87,25 +120,9 @@ alt-python provides a more flexible and convenient environment for working with
87120

88121
<WhatsNext hide-title>
89122

90-
* ![](/images/shield.webp) [Machine-readable security data](../machine-readable-security-data/) — OVAL, CSAF, Errata, and RSS feeds for Python ELS
123+
* ![](/images/eye.webp) [CVE Tracker](https://tuxcare.com/cve-tracker/?product=Python) — Track vulnerability fixes and updates
124+
* ![](/images/shield.webp) [Available fixes](https://tuxcare.com/cve-tracker/fixes?product=Python) — Patched versions and changelogs
125+
* ![](/images/clipboard-notes.webp) [Supported components](https://tuxcare.com/cve-tracker/products?product=Python) — Full list of product parts covered by ELS
126+
* ![](/images/shield.webp) [Machine-readable security data](/els-for-runtimes/machine-readable-security-data/#python) — OVAL, CSAF, Errata, and RSS feeds for Python ELS
91127

92128
</WhatsNext>
93-
94-
<script setup>
95-
96-
const rpmex =
97-
`$ /opt/alt/python36/bin/python3.6
98-
Python 3.6.15 (default, Apr 10 2024, 00:00:00)
99-
[GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] on linux
100-
Type "help", "copyright", "credits" or "license" for more information.
101-
>>> print("Hello, World!")
102-
Hello, World!`
103-
104-
const debex =
105-
`$ /opt/alt/python36/bin/python3.6
106-
Python 3.6.15 (default, Sep 18 2025, 13:57:38)
107-
[GCC 5.4.0 20160609] on linux
108-
Type "help", "copyright", "credits" or "license" for more information.
109-
>>>`
110-
111-
</script>

0 commit comments

Comments
 (0)