Skip to content
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 doing tuesday-agent update && tuesday-agent send)
  • checks 3 things:
  1. versions and timestamps from package manager
  2. if policies match
  3. 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 Major curl 7 Minor curl 7.52 Patch curl 7.52.1 Starting point curl ~>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
Clone this wiki locally