add package scripts for package install separation from initialization

master
Kebler Network System Administrator 2023-01-21 22:43:53 -08:00
parent f2c9be5c29
commit 9b90e79d4d
5 changed files with 29 additions and 0 deletions

9
src/alpine/packages.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
echo install packages for alpine distro
apk update; apk upgrade;
pwd; ls -la
echo ">>>> installing packages => alpine: $(cat ./packages); common: $(cat ../common/packages)"
apk add --no-cache bash bash-completion $(cat ./packages) $(cat ../common/packages)
# apk add bindfs --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
# needed for useradd and groupadd
apk add shadow --repository=http://dl-2.alpinelinux.org/alpine/edge/community

2
src/debian/packages Normal file
View File

@ -0,0 +1,2 @@
ca-certificates
gpg

6
src/debian/packages.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
echo install packages for ubuntu distro
apt-get update
echo ">>>> installing packages => $(cat packages) $(cat common-packages)"
apt-get install $(cat packages) $(cat ../common/packages) -y
/bin/bash add-ppa.sh -i -p git git-core/ppa

6
src/packages.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
echo "installing packages...."
cd ${LINUX_DISTRO} || exit 1
/bin/sh packages.sh
cd ..

6
src/ubuntu/packages.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
echo install packages for ubuntu distro
apt-get update
echo ">>>> installing packages => $(cat packages) $(cat common-packages)"
apt-get install $(cat packages) $(cat ../common/packages) -y
# ./add-ppa.sh -i -p git git-core/ppa