.\" Automatically generated by Pandoc 2.19.2 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "check_updates" "1" "January 2023" "check_updates" "" .hy .SH NAME .PP check_updates - Notifies about available updates. Configuration is done in environment files. .PD 0 .P .PD It\[cq]s part of \f[B]system-helpers\f[R]. .SH SYNOPSIS .PP \f[B]check_updates\f[R] .SH DESCRIPTION .PP \f[B]check_updates\f[R] checks for available updates using \f[I]checkupdates\f[R] (which can be customized) and notifies. It comes with systemd services. .PP By default, \f[B]check_updates\f[R] tries to read from \f[I]$HOME/.check_updates.conf\f[R] and \f[I]/etc/check_updates.conf\f[R] for configuration. It will exit with a non-zero exit code if it cannot find a proper configuration file. .PP The following can be modified if defaults don\[cq]t apply: .PD 0 .P .PD - \f[B]CHECK_UPDATES_UPDATES_CMD\f[R] is the command for retrieving which updates are available, by default it\[cq]s set to \f[I]/usr/bin/checkupdates\f[R] (Arch Linux default). .PD 0 .P .PD - \f[B]CHECK_UPDATES_UPDATES_AMOUNT_CMD\f[R] is the command used to determine the amount of updates, by default it\[cq]s set to \f[I]/usr/bin/checkupdates | wc -l\f[R] (Arch Linux default). .PD 0 .P .PD .PP You can copy this script to \f[I]/usr/local/bin\f[R] and use create a custom \f[B]CONFIG_FILE\f[R] as user. .SH EXAMPLE .PP Create a \f[I]$HOME/.check_updates.conf\f[R] and add \f[I]CHECK_UPDATES_UPDATES_CMD=\[lq]\&...\[rq]\f[R]. Notifications will be delivered via \f[B]notifier\f[R]. Examples can be found in \f[I]/usr/share/doc/system-helpers/check_updates\f[R]. .SH EXIT VALUES .TP \f[B]0\f[R] Success .TP \f[B]1\f[R] Error .SH SEE ALSO .PP \f[B]notifier\f[R] - used as notification application .SH AUTHORS Alexander Sch\[:a]ferdiek.