strip version and ignore not found packages
This commit is contained in:
@@ -20,4 +20,16 @@ if [[ ${#packages[@]} -eq 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing ${#packages[@]} packages..."
|
echo "Installing ${#packages[@]} packages..."
|
||||||
sudo pacman -S --needed "${packages[@]}"
|
skipped=()
|
||||||
|
for pkg in "${packages[@]}"; do
|
||||||
|
if pacman -Si "$pkg" &>/dev/null || pacman -Sg "$pkg" &>/dev/null; then
|
||||||
|
sudo pacman -S --needed --noconfirm "$pkg"
|
||||||
|
else
|
||||||
|
echo "Skipping '$pkg': not found in repositories"
|
||||||
|
skipped+=("$pkg")
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ ${#skipped[@]} -gt 0 ]]; then
|
||||||
|
echo "Skipped ${#skipped[@]} package(s): ${skipped[*]}"
|
||||||
|
fi
|
||||||
|
|||||||
144
packages.txt
144
packages.txt
@@ -1,72 +1,72 @@
|
|||||||
alacritty 0.16.1-1
|
alacritty
|
||||||
base 3-3
|
base
|
||||||
bind 9.20.19-1
|
bind
|
||||||
blueman 2.4.6-2
|
blueman
|
||||||
bluez-utils 5.86-2
|
bluez-utils
|
||||||
brave-bin 1:1.87.192-1
|
brave-bin
|
||||||
calibre 8.7.0-9
|
calibre
|
||||||
cronie 1.7.2-2
|
cronie
|
||||||
cuda 13.1.1-1
|
cuda
|
||||||
docker 1:29.2.1-1
|
docker
|
||||||
docker-compose 5.0.2-1
|
docker-compose
|
||||||
extra-cmake-modules 6.23.0-1
|
extra-cmake-modules
|
||||||
fastfetch 2.59.0-1
|
fastfetch
|
||||||
fcitx5-configtool 5.1.12-2
|
fcitx5-configtool
|
||||||
fcitx5-gtk 5.1.5-1
|
fcitx5-gtk
|
||||||
feh 3.11.2-2
|
feh
|
||||||
firefox 147.0.4-1
|
firefox
|
||||||
flameshot 13.3.0-2
|
flameshot
|
||||||
fuse2 2.9.9-5
|
fuse2
|
||||||
fzf 0.70.0-1
|
fzf
|
||||||
gparted 1.8.1-1
|
gparted
|
||||||
grub-btrfs 4.14-1
|
grub-btrfs
|
||||||
htop 3.4.1-1
|
htop
|
||||||
inkscape 1.4.3-2
|
inkscape
|
||||||
intel-ucode 20260210-1
|
intel-ucode
|
||||||
kbibtex 1:0.10.0-10
|
kbibtex
|
||||||
kodi 21.3-3
|
kodi
|
||||||
krita 5.2.15-1
|
krita
|
||||||
libreoffice-still 25.8.5-1
|
libreoffice-still
|
||||||
linux-zen 6.19.9.zen1-1
|
linux-zen
|
||||||
masterpdfeditor 5.9.94-1
|
masterpdfeditor
|
||||||
masterpdfeditor-debug 5.9.94-1
|
masterpdfeditor-debug
|
||||||
mousepad 0.6.5-1
|
mousepad
|
||||||
neovim 0.11.6-1
|
neovim
|
||||||
net-tools 2.10-3
|
net-tools
|
||||||
network-manager-applet 1.36.0-1
|
network-manager-applet
|
||||||
nvidia-open-dkms 590.48.01-4
|
nvidia-open-dkms
|
||||||
okular 25.12.2-1
|
okular
|
||||||
openbsd-netcat 1.234_1-1
|
openbsd-netcat
|
||||||
partitionmanager 25.12.3-1
|
partitionmanager
|
||||||
paru 2.1.0-2
|
paru
|
||||||
paru-debug 2.1.0-2
|
paru-debug
|
||||||
pasystray 0.8.2-2
|
pasystray
|
||||||
plasma-meta 6.6-1
|
plasma-meta
|
||||||
playerctl 2.4.1-5
|
playerctl
|
||||||
polybar 3.7.2-2
|
polybar
|
||||||
pyright 1.1.407-1
|
pyright
|
||||||
python-uv 0.10.12-1
|
python-uv
|
||||||
qt6-wayland 6.10.2-1
|
qt6-wayland
|
||||||
ranger 1.9.4-5
|
ranger
|
||||||
rsync 3.4.1-2
|
rsync
|
||||||
rust-analyzer 20260202-1
|
rust-analyzer
|
||||||
sddm 0.21.0-6
|
sddm
|
||||||
signal-desktop 7.90.0-1
|
signal-desktop
|
||||||
snap-pac 3.0.1-3
|
snap-pac
|
||||||
sof-firmware 2025.12.2-1
|
sof-firmware
|
||||||
steam 1.0.0.85-3
|
steam
|
||||||
strawberry 1.2.18-1
|
strawberry
|
||||||
swaybg 1.2.1-1
|
swaybg
|
||||||
swayidle 1.9.0-1
|
swayidle
|
||||||
swaylock 1.8.4-1
|
swaylock
|
||||||
syncthing 2.0.14-1
|
syncthing
|
||||||
texlive-langother 2025.2-3
|
texlive-langother
|
||||||
texlive-meta 2025.2-3
|
texlive-meta
|
||||||
thunderbird 147.0.1-1
|
thunderbird
|
||||||
unbound 1.24.2-2
|
unbound
|
||||||
vala 0.56.18-5
|
vala
|
||||||
vlc 3.0.21-32
|
vlc
|
||||||
wireguard-tools 1.0.20260223-1
|
wireguard-tools
|
||||||
xfce4-terminal 1.1.5-2
|
xfce4-terminal
|
||||||
xorg-xinput 1.6.4-2
|
xorg-xinput
|
||||||
zram-generator 1.2.1-1
|
zram-generator
|
||||||
|
|||||||
Reference in New Issue
Block a user