DescriptionCentOS 8Ubuntu 20Docker
package manageryumaptapk
Updateyum update -yapt updateapk update
Check OS versioncat /etc/redhat-release
cat /proc/version
cat /etc/issue
cat /proc/version
cat /etc/issue
cat /proc/version
Install aws-clidnf install python3-pip
pip3 install awscli
apt-get install awscliapk add –no-cache aws-cli
Install wgetyum install wgetapt-get install wget
Install curlapt-get install curlapk add curl
Check portnetstat -tunlp | grep 8000netstat -tunlp | grep 8000netstat -tunlp | grep 8000
lsof -i:80lsof -i:80lsof -i:80

Centos install error:

[root@2b7f05b55efb /]# yum install wget
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream                                                               96  B/s |  38  B     00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
[root@2b7f05b55efb /]# sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
bash: sudo: command not found

To resolve this issue:

[root@2b7f05b55efb /]# sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
[root@2b7f05b55efb /]# sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*