范例:CentOS 8 最小化安装建议安装包
PACK="
vim-enhanced
tcpdump
autofs
lrzsz
tree
telnet
ftp
lftp
redhat-lsb-core
bash-completion
net-tools
postfix
wget
bzip2
lsof
screen
mlocate
tmux
man-pages
"
for p in $PACK;do
rpm -q $p &> /dev/null || yum -q -y install $p
范例:CentOS 7 最小化安装建议安装包
yum -y install vim-enhanced tcpdump lrzsz tree telnet bash-completion net-tools wget bzip2 lsof tmux man-pages zip unzip nfs-utils gcc make gcc-c++ glibc glibc-devel pcre pcre-devel openssl openssl-devel systemd-devel zlib-devel
范例:Ubuntu 1804 最小化安装建议安装包
apt -y purge ufw lxd lxd-client lxcfs liblxc-common
apt -y install iproute2 ntpdate tcpdump telnet traceroute nfs-kernel-server nfs-common lrzsz tree openssl libssl-dev libpcre3 libpcre3-dev zlib1g-dev gcc openssh-server iotop unzip zip