PAININTHEAPT(8)

πŸŽ€ Pain in the APT(8) πŸŽ€

aka painintheapt β€” the little pest from the System Manager's Manual who will not let you forget that you have package upgrades pending πŸ’…

okay so bestie, Pain in the APT pesters people about available package upgrades, just like apticron or cron-apt do. BUT β€” and this is the iconic part β€” it does it over XMPP (direct, MUC/conference room, or pubsub node), over SMTP, or by calling mailx. it's giving "your updater has main character energy" ✨


🌸 What does it do?

  1. updates the APT cache and checks for updates
  2. sends list of available updates to Jabber contacts or a conference room or pubsub node immediately
  3. or sends list of available updates and relevant changelogs (slow) to email recipients
  4. downloads packages, but does not install them
Messages are only sent when there is any change in either the list of updates or in the configuration of painintheapt. so like, no spam, only ✨news✨

πŸ’– Options

  • -c, --configfile configuration file β€” the configuration file, (defaults: /etc/painintheapt.conf)
  • -d, --debug β€” print debug output to stderr
  • -f, --force β€” send message, even if updates did not change
  • -h, --help β€” print help
  • -s, --stampfile stamp file β€” the stamp file (default: /var/lib/painintheapt/stamp)
  • -t, --testmessage β€” send a test message only
  • -v, --version β€” print version

πŸ¦‹ Configuration

The default configuration file is /etc/painintheapt.conf in inifile format. periodt.

There are up to three sections, XPMP, SMTP, and MAILX. (yes bestie, that first one is the XMPP section β€” typos happen, we still love it πŸ™ˆ)

🧚 XMPP

The keys for XMPP are jid, password_file, avatar, to, room, pubsub_service, pubsub_node, send_changes, host, and port. The latter two are only necessary in exceptional cases. lowkey you can ignore them unless you're built different.

The most simple setup only needs jid, password_file, and to. that's it, that's the whole vibe check πŸ’œ

It is recommended to set the accompanying logo as Jabber avatar for the respective JID. This can be done automatically by painintheapt. bestie the cow gets to be your face, iconic

πŸ’Œ SMTP

The keys for SMTP are server, port, username, password_file, from, to, cc, and send_changes.

πŸ“¬ MAILX

The keys for MAILX are from, to, cc, and send_changes.


⭐ Usage

painintheapt is typically run from systemd timers. One may call painintheapt without arguments daily, and with the --force option weekly, just to make sure that everything works fine. daily for the vibes, weekly for the safety net, fr fr


🌈 Resources


πŸ‘‘ License

Affero General Public License 3 or higher


        (___)
       β—‹(@ @)β—‹
        -\∞/-
       /__β€Ύ__\

Maybe a cow, a gnu, or a dragon? ngl we do not know and we are obsessed with the mystery 🫢


πŸ’… Author

Martin <debacle@debian.org>


and that's the whole page bestie β€” brought to you by the System Manager's Manual, filed under Pain in the APT(8), no cap πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from