-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·57 lines (43 loc) · 1.46 KB
/
install.sh
File metadata and controls
executable file
·57 lines (43 loc) · 1.46 KB
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
#!/bin/sh
# Author : Chandu J S
# Copyright (c) chandujs.dev
# This script install all packages I need for my use cases.
# files to look for the packages to install.
trustedPackages="./install_trusted.conf"
thirdPartyPackages="./install_third_party.conf"
# systemd services
systemdServices="./services.conf"
sudo pacman --sync --refresh
echo ""
echo "🏁 Preparing installation..."
echo ""
# looping through the list & avoiding the empty spaces
trustedPackagesTogether=$(cat ${trustedPackages} | grep -v "^$")
thirdPartyPackagesTogether=$(cat ${thirdPartyPackages} | grep -v "^$")
# installing `pikaur` if not installed.
if ! which pikaur >/dev/null; then
currentDirectory=$pwd
tmpDirectory="/tmp/pikaur"
sudo pacman --sync --needed --noconfirm base-devel git
mkdir $tmpDirectory
git clone https://aur.archlinux.org/pikaur.git $tmpDirectory
cd $tmpDirectory
makepkg --force --syncdeps --rmdeps --install
cd $currentDirectory
rm -rf $tmpDirectory
echo ""
fi
# installing trusted packages.
# regular packages can also be installed with `pikaur`.
sudo pacman --sync --needed --noconfirm $trustedPackagesTogether
echo ""
# installing third party packages.
pikaur --sync --needed $thirdPartyPackagesTogether
echo "";
echo "⚙ Enabling serivces..."
# looping through the list & avoiding the empty spaces
sed '/^[ \t]*$/d' $systemdServices | while read service; do
sudo systemctl enable $service
done
echo ""
echo "🎉 Installation complete! You can restart your PC."