Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# 检查是否已安装 build-essential
if dpkg-query -W build-essential >/dev/null 2>&1; then
echo "build-essential 已安装,跳过安装步骤。"
else
echo "安装 build-essential..."
sudo apt update
sudo apt install -y build-essential
fi