feat(dnf): commands for selective upgrades

This commit is contained in:
Michele Cereda
2024-06-10 22:48:30 +02:00
parent f9fd610508
commit bde73759ef
3 changed files with 11 additions and 0 deletions

View File

@@ -71,6 +71,7 @@
"asciinema",
"authelia",
"authentik",
"autoremove",
"autoscaler",
"autoscalers",
"awscli",

View File

@@ -45,6 +45,9 @@ dnf list 'sponge' 'ca-certificates'
dnf list --installed
dnf list --obsoletes
# List all available versions of packages.
dnf list --available --showduplicates 'gitlab-runner'
# Lists installed packages that are not available in any known repository.
dnf list --extras
@@ -78,6 +81,8 @@ dnf upgrade
dnf upgrade --bugfix --exclude 'sshpass'
dnf upgrade --nobest --security
dnf upgrade --advisories='FEDORA-2021-74ebf2f06f,FEDORA-2021-83fdddca0f'
dnf upgrade --security --sec-severity 'Critical' --downloadonly
dnf -y upgrade --security --sec-severity 'Important'
# List summary information about occurred transactions.
dnf history

View File

@@ -1,3 +1,8 @@
#!/usr/bin/env sh
sudo dnf list --available --showduplicates 'gitlab-runner'
sudo dnf check-update --bugfix --security
sudo dnf upgrade --security --sec-severity 'Critical' --downloadonly
sudo dnf -y upgrade --security --sec-severity 'Important'