-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Aaron Bronow edited this page May 6, 2019
·
7 revisions
Welcome to the tuesday-agent wiki!
Ideas
- install gpg keys
gpg2 --recv-keys #### ####
- installs with
wget -qO- https://get.tuesday.sh/{token} | sh
on linux - on windows
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://get.tuesday.sh/{token}/install.ps1'))
- can be run manually like
tuesday-agent
and will display stats - can retrieve policies from the server
tuesday-agent update
- reads policies from a file
- if policies exist then shows a fancy ascii report
- can be run from cron like
tuesday-agent sync
-
sync
does two things: updates policies and then sends stats to the server (like doingtuesday-agent update && tuesday-agent send
) - checks 3 things:
- versions and timestamps from package manager
- if policies match
- dist/OS updates available or packages held back
- should check last time package manager was updated
- package version specific policies should look like
Latest
curl
Majorcurl 7
Minorcurl 7.52
Patchcurl 7.52.1
Starting pointcurl ~>7.52
- freshness policies should look like
monthly:
package:
- curl
priority:
- standard
- extra
weekly:
python
immediately:
priority:
- required
origin:
- security
# get package priority levels
dpkg-query -Wf '${Package;-40}${Priority}\n' | sort -b -k2,2 -k1,1
# show what will autoupdate
sudo unattended-upgrade -d --dry-run
# get available updates debian apt
apt list --upgradable | sed s/]/''/g | awk '!/List/ {print $1, $2, $6}'
# todo arch pacman
# todo rhel yum
# todo gentoo portage
# todo macos homebrew
# todo windows wsus