-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup-Packages.sh
58 lines (44 loc) · 1.22 KB
/
Setup-Packages.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# bash script to install packages on the system
# check install.txt and install32.txt for packages names
# Copyright (C) 2014-2022 Md Imam Hossain
# License
# This program is free software; you can use it for any purposes but can not redistribute it and/or modify it.
# This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY.
ifiles=install.txt
ifiles32=install32.txt
ifilesu=install_ubuntu.txt
for package in `cat $ifiles`
do
apt-get -y install $package
done
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
if [ $? -ne 0 ]
then
echo "64-bit packages installation was unsuccessful"
else
echo "64-bit packages installation was successful"
fi
for package in `cat $ifiles32`
do
apt-get -y install $package":i386"
done
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
if [ $? -ne 0 ]
then
echo "32-bit packages installation was unsuccessful"
else
echo "32-bit packages installation was successful"
fi
for package in `cat $ifilesu`
do
apt-get -y install $package
done
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
if [ $? -ne 0 ]
then
echo "System tools packages installation was unsuccessful"
else
echo "System tools packages installation was successful"
fi
exit 0