Dotfiles config update (2022-04-24)

This commit is contained in:
q3aql 2022-04-24 18:31:48 +02:00
parent 8eba2ef764
commit d38a49787c

View File

@ -5,16 +5,14 @@
# 0 * * * * root /usr/bin/pacman -Sy
# 30 * * * * root /usr/bin/pacman -Sy
if [ -f /usr/bin/pacman ] ; then
num_packages=$(pacman -Qu | wc -l)
echo "${num_packages}"
pacman -Qu
# Check updates on Ubuntu/Debian/Devuan
# Note: Create cron on /etc/cron.d/checkupdates with the following lines:
# 0 * * * * root /usr/bin/aptitude update
# 30 * * * * root /usr/bin/aptitude update
elif [ -f /usr/bin/aptitude ] ; then
num_packages=$(aptitude search "~U" | wc -l)
echo "${num_packages}"
aptitude search "~U"
# Disable for other distros
else