This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_packages.sh
93 lines (79 loc) · 1.99 KB
/
install_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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
# Uncomment community [multilib] repository
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
# Refresh mirror list
pacman-key --init
pacman -Syu --noconfirm reflector rsync curl git base-devel 2>&1 | grep -v "warning: could not get file information"
reflector --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
# Download fresh package databases from the servers
pacman -Syy
# Create a non-root user for yay to install packages from AUR
useradd -m -G wheel -s /bin/bash auruser
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# AUR Packages
sudo -u auruser yay -S --noconfirm \
alhp-keyring alhp-mirrorlist
# Enable ALHP repos
sed -i "/\[core-x86-64-v3\]/,/Include/"'s/^#//' /etc/pacman.conf
sed -i "/\[extra-x86-64-v3\]/,/Include/"'s/^#//' /etc/pacman.conf
sed -i "/\[community-x86-64-v3\]/,/Include/"'s/^#//' /etc/pacman.conf
# Update
pacman -Syyu --noconfirm 2>&1 | grep -v "warning: could not get file information"
# Install Development Packages
pacman -Sy --noconfirm \
sudo \
nano \
git \
curl \
wget \
rsync \
aarch64-linux-gnu-binutils \
base-devel \
bc \
bison \
ccache \
clang \
cpio \
cmake \
flex \
gcc \
gcc-libs \
github-cli \
gperf \
jemalloc \
jdk-openjdk \
libelf \
lld \
lz4 \
llvm \
multilib-devel \
ninja \
openmp \
openssl \
patchelf \
perf \
perl \
python3 \
python-pip \
uboot-tools \
zip \
zstd
# More Packages
pacman -Sy --noconfirm \
tmate tmux htop
# Custom ZSTD package
wget https://github.com/dakkshesh07/zstd-pkgbuild/releases/download/1.5.2-8/zstd-1.5.2-8-x86_64.pkg.tar.zst
pacman -U --noconfirm zstd-1.5.2-8-x86_64.pkg.tar.zst
rm -rf zstd-1.5.2-8-x86_64.pkg.tar.zst
# Symlinks for python an
ln -sf /usr/bin/pip3.10 /usr/bin/pip3
ln -sf /usr/bin/pip3.10 /usr/bin/pip
ln -sf /usr/bin/python3.10 /usr/bin/python3
ln -sf /usr/bin/python3.10 /usr/bin/python
# python and pip version
python3 --version
pip3 --version
# Install Some pip packages
pip3 install \
telegram-send
echo 'package installtion completed'