dotfiles/.config/qtile/checkUpdates.sh

21 lines
547 B
Bash
Raw Normal View History

2022-04-24 17:53:11 +02:00
#!/bin/bash
# Check updates on Arch Linux
# Note: Create cron on /etc/cron.d/checkupdates with the following lines:
# 0 * * * * root /usr/bin/pacman -Sy
# 30 * * * * root /usr/bin/pacman -Sy
if [ -f /usr/bin/pacman ] ; then
2022-04-24 18:31:48 +02:00
pacman -Qu
2022-04-24 17:53:11 +02:00
# 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
2022-04-24 18:31:48 +02:00
aptitude search "~U"
2022-04-24 17:53:11 +02:00
# Disable for other distros
else
echo "0"
fi