Login
You're viewing the code4lib.social public feed.
  • Feb 4, 2024, 8:19 AM

    does anyone have any reading I can link to someone about why pre/post install/uninstall scripts in package managers is a bad idea, and in a similar vein, why its a bad idea for packages to try to configure themselves on installation (using said postinstall scripts)

    💬 1🔄 0⭐ 0

Replies

  • Feb 4, 2024, 10:22 AM

    @meph i haven't explicitly written about it, but the key points are that the side effects caused by the maintainer scripts are better encapsulated in declarative configuration (which can then be handled by either the package manager or some sort of distribution-provided trigger), or already computed at package build time.

    any situation where these options are inappropriate is likely best resolved by the end user (nobody likes a distribution which tries to out-think the user).

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0