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