-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_packages.sh
More file actions
executable file
Β·165 lines (138 loc) Β· 5.01 KB
/
Copy pathinstall_packages.sh
File metadata and controls
executable file
Β·165 lines (138 loc) Β· 5.01 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
#!/bin/bash
# Arch Linux Package Installation Script
# Generated from shell history analysis
# This script recreates the package configuration found in the user's system
set -e # Exit on any error
echo "π Starting Arch Linux package installation..."
echo "=============================================="
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Function to install packages with error handling
install_packages() {
local packages=("$@")
echo "π¦ Installing packages: ${packages[*]}"
if ! sudo pacman -S --noconfirm "${packages[@]}"; then
echo "β Failed to install packages: ${packages[*]}"
return 1
fi
echo "β
Successfully installed: ${packages[*]}"
}
# Function to install AUR packages with yay
install_aur_packages() {
local packages=("$@")
echo "π¦ Installing AUR packages: ${packages[*]}"
if ! yay -S --noconfirm "${packages[@]}"; then
echo "β Failed to install AUR packages: ${packages[*]}"
return 1
fi
echo "β
Successfully installed AUR packages: ${packages[*]}"
}
# Update system first
echo "π Updating system packages..."
sudo pacman -Syu --noconfirm
# Install essential packages (from pacman history)
echo ""
echo "π¦ Installing packages from pacman history..."
pacman_packages=(
"gum" # Terminal UI builder
"qutebrowser" # Web browser
"speech-dispatcher" # Speech synthesis
"speech-dispatcher-utils" # Speech synthesis utilities
)
install_packages "${pacman_packages[@]}"
# Install AUR packages (from yay history and current system)
echo ""
echo "π¦ Installing AUR packages from yay history..."
aur_packages=(
"speed-dispatcher" # Speed test dispatcher
"zen-browser-bin" # Zen browser
)
install_aur_packages "${aur_packages[@]}"
# Install additional AUR packages found in current system
echo ""
echo "π¦ Installing additional AUR packages found in system..."
additional_aur_packages=(
"k3s-bin" # Lightweight Kubernetes
"lazydocker-bin" # Docker TUI
"python-terminaltexteffects" # Terminal text effects
"ttf-ia-writer" # IA Writer font
"tzupdate" # Timezone updater
"ufw-docker" # UFW Docker integration
"walker-bin" # File browser
"wl-screenrec" # Wayland screen recorder
"yaru-icon-theme" # Yaru icon theme
"yay-bin" # AUR helper
)
install_aur_packages "${additional_aur_packages[@]}"
# Install development tools and utilities
echo ""
echo "π§ Installing development tools and utilities..."
dev_packages=(
"git" # Version control
"base-devel" # Base development tools
"cmake" # Build system
"ninja" # Build system
"pkg-config" # Package configuration
)
install_packages "${dev_packages[@]}"
# Install multimedia and graphics
echo ""
echo "π¨ Installing multimedia and graphics packages..."
multimedia_packages=(
"ffmpeg" # Multimedia framework
"imagemagick" # Image manipulation
"gimp" # Image editor
"inkscape" # Vector graphics editor
)
install_packages "${multimedia_packages[@]}"
# Install system utilities
echo ""
echo "βοΈ Installing system utilities..."
system_packages=(
"htop" # Process viewer
"neofetch" # System info
"tree" # Directory tree
"ripgrep" # Fast grep
"fd" # Fast find
"bat" # Better cat
"exa" # Better ls
"fzf" # Fuzzy finder
)
install_packages "${system_packages[@]}"
# Install networking tools
echo ""
echo "π Installing networking tools..."
network_packages=(
"wget" # Web downloader
"curl" # Web client
"nmap" # Network scanner
"net-tools" # Network utilities
)
install_packages "${network_packages[@]}"
# Clean up package cache
echo ""
echo "π§Ή Cleaning up package cache..."
sudo pacman -Sc --noconfirm
# Update package database
echo ""
echo "π Updating package database..."
sudo pacman -Fy
echo ""
echo "π Package installation completed!"
echo "=============================================="
echo ""
echo "π Summary of installed packages:"
echo " - Official packages: ${#pacman_packages[@]} packages"
echo " - AUR packages: ${#aur_packages[@]} packages"
echo " - Additional AUR packages: ${#additional_aur_packages[@]} packages"
echo " - Development tools: ${#dev_packages[@]} packages"
echo " - Multimedia packages: ${#multimedia_packages[@]} packages"
echo " - System utilities: ${#system_packages[@]} packages"
echo " - Networking tools: ${#network_packages[@]} packages"
echo ""
echo "π‘ You can now run: pacman -Q to see all installed packages"
echo "π‘ For AUR packages: pacman -Qm"
echo ""
echo "οΏ½οΏ½ System is ready!"