mergerfs/buildtools/install-build-pkgs

40 lines
1.1 KiB
Text
Raw Permalink Normal View History

#!/bin/sh
if [ -e /usr/bin/apt-get ]; then
2020-06-18 20:08:31 -04:00
export DEBIAN_FRONTEND=noninteractive
apt-get -qy update
2023-01-25 19:52:27 -05:00
apt-get -qy --force-yes --no-install-suggests --no-install-recommends \
install \
2020-06-18 20:08:31 -04:00
ca-certificates \
build-essential \
2025-06-23 21:57:55 -05:00
dpkg-dev \
2020-06-18 20:08:31 -04:00
git \
g++ \
debhelper \
lsb-release \
fakeroot
elif [ -e /usr/bin/dnf ]; then
dnf -y update
dnf -y install \
git rpm-build gcc-c++ make which libatomic
elif [ -e /usr/bin/yum ]; then
yum -y update
yum -y install \
git rpm-build gcc-c++ make which
yum -y install centos-release-scl
yum -y install devtoolset-9-gcc\*
elif [ -e /usr/bin/zypper ]; then
zypper update -y
zypper install -y \
2025-08-29 08:51:05 -04:00
git rpm-build gcc-c++ make which
elif [ -e /sbin/apk ]; then
apk add \
abuild git gcc g++ make \
2025-08-29 08:51:05 -04:00
linux-headers
2019-02-06 21:41:25 -05:00
elif [ -e /usr/sbin/pkg ]; then
pkg install \
git gmake gcc
2026-03-13 15:46:18 -05:00
elif [ -e /usr/bin/pacman ]; then
pacman -Sy --noconfirm base-devel git fakeroot
fi