OSDN Git Service

fix manjaro pamac
[instantos/instantARCH.git] / depend / system.sh
1 #!/bin/bash
2
3 # installs basic dependencies not specific to instantOS
4
5 echo "installing additional system software"
6
7 pacman -Sy --noconfirm
8
9 while ! pacman -S xorg --noconfirm --needed; do
10     dialog --msgbox "package installation failed \nplease reconnect to internet" 700 700
11     command -v reflector && --latest 40 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
12 done
13
14 while ! pacman -S --noconfirm --needed \
15     sudo \
16     lightdm \
17     bash \
18     zsh \
19     vim \
20     xterm \
21     systemd-swap \
22     neofetch \
23     pulseaudio \
24     alsa-utils \
25     usbutils \
26     lightdm-gtk-greeter \
27     inetutils \
28     xdg-desktop-portal-gtk \
29     steam \
30     firefox \
31     mpv \
32     grub; do
33
34     sleep 10
35     command -v reflector &&
36         reflector --latest 40 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist &&
37         pacman -Sy --noconfirm
38
39 done
40
41 # don't install arch pamac on Manjaro
42 if ! grep -iq Manjaro /etc/os-release && ! command -v pamac; then
43     echo "installing pamac"
44     sudo pacman -S pamac-aur --noconfirm
45 fi