mirror of
https://github.com/joshuadavidthomas/dotfiles.git
synced 2025-12-23 05:36:53 +00:00
switch to dnf
This commit is contained in:
parent
7865a57faa
commit
a17dd4cd8d
1 changed files with 12 additions and 3 deletions
|
|
@ -47,8 +47,17 @@ PACKAGES=(
|
|||
python3-devel
|
||||
)
|
||||
|
||||
for package in "${PACKAGES[@]}"; do
|
||||
if ! rpm-ostree status | grep -q "$package"; then
|
||||
rpm-ostree install "$package"
|
||||
TO_INSTALL=()
|
||||
|
||||
for pkg in "${PACKAGES[@]}"; do
|
||||
if ! rpm -q "$pkg" &>/dev/null; then
|
||||
TO_INSTALL+=("$pkg")
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ${#TO_INSTALL[@]} -gt 0 ]; then
|
||||
echo "Installing packages: ${TO_INSTALL[*]}"
|
||||
dnf install -y "${TO_INSTALL[@]}"
|
||||
else
|
||||
echo "All packages are already installed"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue