centos,debian 离线安装包命令示例Sample

#centos setup local package
yum -y install  epel-release
yum install --downloadonly --downloaddir=./ htop
rpm -ivh ./htop*.rpm
#debian setup local package
apt-get download  htop
dpkg -i ./htop*.deb
#alpine setup local package
apk fetch htop
apk add --allow-untrusted ./htop*.apk

apk fetch --recursive htop zip unzip p7zip netcat-openbsd openjdk8 dropbear-scp dropbear-ssh dropbear-dbclient dropbear-convert
apk add  --no-network --allow-untrusted  ./htop*.apk