I’m comfortable trusting signed distribution repositories, but I’m less comfortable with how little of that trust is visible during installation. Debian packages can include preinst, postinst, prerm, and postrm scripts; RPM has similar scriptlets and triggers. These run as part of privileged package transactions and may configure services, change system files, create users, or execute other commands. Usually the interface reduces that to a progress bar.
My preference is a default “inspect capabilities before install” view: show lifecycle scripts, likely service changes, user or group creation, writes outside package-owned paths, and detectable network access. A transaction preview already tells us what packages will change, but not this level of effect. Optional permission boundaries or sandboxing could add protection, with documented escape hatches.
I know maintainers use scripts because copying files cannot handle every migration or service setup, and sandboxing may break legitimate work. Developers and experienced Linux users: please challenge this with real examples, or suggest a better alternative that preserves convenience without making trust invisible.