forked from ublue-os/aurora
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01-packages.sh
More file actions
executable file
·221 lines (192 loc) · 5.47 KB
/
Copy path01-packages.sh
File metadata and controls
executable file
·221 lines (192 loc) · 5.47 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
#!/usr/bin/bash
echo "::group:: ===$(basename "$0")==="
set -ouex pipefail
# may break when partially upgraded
dnf versionlock add "qt6-*" "plasma-desktop"
PLASMA_VERS=$(rpm -q --qf "%{VERSION}" plasma-desktop)
# use override to replace mesa and others with less crippled versions
dnf config-manager addrepo --from-repofile="https://negativo17.org/repos/fedora-multimedia.repo"
dnf config-manager setopt fedora-multimedia.priority=90
OVERRIDES=(
"intel-gmmlib"
"intel-mediasdk"
"intel-vpl-gpu-rt"
"libheif"
"libva"
"libva-intel-media-driver"
"mesa-dri-drivers"
"mesa-filesystem"
"mesa-libEGL"
"mesa-libGL"
"mesa-libgbm"
"mesa-vulkan-drivers"
)
dnf5 distro-sync --skip-unavailable -y --repo='fedora-multimedia' "${OVERRIDES[@]}"
dnf5 versionlock add "${OVERRIDES[@]}"
# All DNF-related operations should be done here whenever possible
#shellcheck source=build_files/shared/copr-helpers.sh
source /ctx/build_files/shared/copr-helpers.sh
# NOTE:
# Packages are split into FEDORA_PACKAGES and COPR_PACKAGES to prevent
# malicious COPRs from injecting fake versions of Fedora packages.
# Fedora packages are installed first in bulk (safe).
# COPR packages are installed individually with isolated enablement.
# Base packages from Fedora repos - common to all versions
# Prevent partial upgrading, major kde version updates black screened
# https://github.com/ublue-os/aurora/issues/1227
FEDORA_PACKAGES=(
adcli
alsa-firmware
apr{,-util}
autofs
borgbackup
davfs2
distrobox
evtest
fastfetch
fcitx5-{chewing,chinese-addons,configtool,gtk,hangul,libthai,m17n,mozc,qt,sayura,unikey}
fish
flatpak-spawn
foo2zjs
gcc{,-c++}
git-credential-libsecret
glow
google-noto-sans-balinese-fonts
google-noto-sans-cham-fonts
google-noto-sans-cjk-fonts
google-noto-sans-javanese-fonts
google-noto-sans-linear-a-fonts
google-noto-sans-linear-b-fonts
google-noto-sans-sundanese-fonts
grub2-tools-extra
gum
gvfs{,-fuse}
htop
icoutils
ifuse
igt-gpu-tools
input-remapper
iwd
just
kate
kcm-fcitx5
krb5-workstation
ksshaskpass
ksystemlog
libavcodec
libcamera-gstreamer
libcamera-tools
libfdk-aac
libimobiledevice-utils
libratbag-ratbagd
libxcrypt-compat
lm_sensors
lshw
nvtop
oddjob-mkhomedir
openrgb-udev-rules
pam-u2f
pam_yubico
pamu2fcfg
plasma-wallpapers-dynamic
plasma-firewall-"${PLASMA_VERS}"
powertop
rclone
restic
samba-winbind{,-clients,-modules}
setools-console
solaar-udev
squashfs-tools
symlinks
tcpdump
tesseract-devel
tmux
tesseract-langpack-{eng,deu,fra,spa,por,ita,pol,fin,nld,jpn,jpn_vert,hin,chi_sim,chi_sim_vert,chi_tra,chi_tra_vert}
traceroute
vim
yubikey-manager
zsh
)
FEDORA_PACKAGES_AMD64=(
powerstat
)
NEGATIVO_PACKAGES=(
ffmpeg{,-libs}
libfdk-aac
libva-utils
pipewire-libs-extra
uld
)
NEGATIVO_PACKAGES_AMD64=(
intel-vaapi-driver
)
PACKAGES=( "${FEDORA_PACKAGES[@]}" "${NEGATIVO_PACKAGES[@]}" )
if [[ $(arch) == x86_64 ]]; then
PACKAGES+=( "${FEDORA_PACKAGES_AMD64[@]}" "${NEGATIVO_PACKAGES_AMD64[@]}" )
fi
dnf -y install "${PACKAGES[@]}"
# Fedora Tailscale is usually behind
dnf config-manager addrepo --from-repofile=https://pkgs.tailscale.com/stable/fedora/tailscale.repo
dnf config-manager setopt tailscale-stable.enabled=0
dnf -y install --enablerepo='tailscale-stable' tailscale
# NOTE: Remove ublue-os-selinux-workarounds package when upstream issue is fixed
# https://github.com/ublue-os/akmods/issues/537
# From ublue-os/packages
copr_install_isolated "ublue-os/packages" \
"kcm_ublue" \
"krunner-bazaar" \
"ublue-os-selinux-workarounds" \
"oversteer-udev" \
"uupd"
# kAirpods from ledif/kairpods COPR
copr_install_isolated "ledif/kairpods" \
"kairpods"
# Sunshine from lizardbyte/stable COPR
copr_install_isolated "lizardbyte/stable" \
"sunshine"
# Packages to exclude - common to all versions
EXCLUDED_PACKAGES=(
akonadi-server{,-mysql}
default-fonts-cjk-sans
fedora-bookmarks
fedora-chromium-config{,-kde}
fedora-third-party
ffmpegthumbnailer
firefox
firewall-config
kcharselect
khelpcenter
krfb{,-libs}
plasma-discover{,-libs}
plasma-welcome-fedora
podman-docker
)
# Remove excluded packages if they are installed
if [[ "${#EXCLUDED_PACKAGES[@]}" -gt 0 ]]; then
readarray -t INSTALLED_EXCLUDED < <(rpm -qa --queryformat='%{NAME}\n' "${EXCLUDED_PACKAGES[@]}" 2>/dev/null || true)
if [[ "${#INSTALLED_EXCLUDED[@]}" -gt 0 ]]; then
dnf5 -y remove "${INSTALLED_EXCLUDED[@]}"
else
echo "No excluded packages found to remove."
fi
fi
## Pins and Overrides
## Use this section to pin packages in order to avoid regressions
# Remember to leave a note with rationale/link to issue for each pin!
#
# Example:
#if [ "$FEDORA_MAJOR_VERSION" -eq "42" ]; then
# Workaround pkcs11-provider regression, see issue #1943
# dnf5 upgrade --refresh --advisory=FEDORA-2024-dd2e9fb225
#fi
# https://invent.kde.org/plasma/plasma-setup/-/issues/72
dnf -y copr enable ublue-os/staging
dnf -y copr disable ublue-os/staging
dnf -y swap --repo=copr:copr.fedorainfracloud.org:ublue-os:staging \
plasma-setup plasma-setup-"${PLASMA_VERS}"-*.aurora
dnf versionlock add plasma-setup
# Install DX specific packages
if [[ "${IMAGE_FLAVOR}" == "dx" ]]; then
/ctx/build_files/dx/00-dx.sh
fi
echo "::endgroup::"