2回答
- 新しい順
- 投票が多い順
- コメントが多い順
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
回答済み 1年前