Skip to content
Discussion options

You must be logged in to vote

Hi @sej7278, thanks for opening this discussion. I'll try to answer your questions

For debian based distributions, to check if security (pending) updates are available, this is used:

apt list --upgradable 2>/dev/null | grep "\-security" | wc -l

For debian based distributions, to check if unattended is used to download and install security updates, this is used:

grep unattended /var/log/apt/history.log | wc -l

For redhat based distributions, to check if security (pending) updates are available, this is used:

dnf check-update --refresh --security | wc -l

For redhat based distributions, to check if unattended is used to download and install security updates, this is used:

/etc/dnf/automatic.…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by sej7278
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sej7278
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants