2 Answers
- Newest
- Most votes
- Most comments
0
Hi. How about installing dnf not via yum but via rpm. I found the Japanese article which installs dnf to AL2. Hope this article will help you.(please translate it) https://qiita.com/deracio/items/db6a95be6bc5f795a968
0
For DNF I have not been able to get it work on Amazon Linux 2 however, I have been able to install python3.9 on it. You can follow the steps below and revert.
- sudo yum update
- sudo yum upgradew
- get https://www.python.org/ftp/python/3.9.15/Python-3.9.15.tgz
- ls -la
- tar xzf Python-3.9.15.tgz
- ls -la
- cd Python-3.9.15/
- sudo ./configure --enable-optimizations
- sudo make altinstall
1). check python versions and their directories whereis python3
2). test python3.9 by using it python3.9
3). Set python3 version variable alternatives --set python /usr/bin/python3.9
4). Check the python3.9 version python3 -V
or python3 --version
answered 10 months ago
Relevant content
- asked 10 months ago
- asked 5 years ago
- asked 3 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 10 months ago