-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpkg.sh
More file actions
executable file
·34 lines (30 loc) · 905 Bytes
/
pkg.sh
File metadata and controls
executable file
·34 lines (30 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/bash
#Description: Script to install some basic pakages Linux, This is compatible with Ubuntu, Alpine and CentOS Family
#Author: eviofekeze
#Date: Nov 6
echo "Identifying Operating System"
DISTRO=$(. /etc/os-release && echo "$ID")
UBT='ubuntu'
COS='centos'
#RHEL='(Fedora)|(Red Hat.*)'
ALP='alpine'
if [[ "$DISTRO" == "$UBT" ]]
then
echo "Ubuntu Detected"
#Remove docker
sudo apt-get install -y git vim net-tools sysstat zip wget curl
elif [[ "$DISTRO" =~ "$COS" ]]
then
echo " OS: $DISTRO Detected"
sudo yum install -y git vim net-tools sysstat zip wget curl
elif [[ "$DISTRO" =~ "$ALP" ]]
then
echo " OS: $DISTRO Detected"
<<<<<<< HEAD
sudo apk add -y git vim net-tools sysstat zip wget curl
=======
sudo apk add git vim net-tools sysstat zip wget curl
>>>>>>> d7b6ca0d89db3ff27d9af030ae410ea50855b11b
else
echo "Not compatible with operating system"
fi