steve(a)silug.org (Steven Pritchard) writes:
> rpm does not offer a way to determine whether a package creates
an user
> or not. So the 'just add an ... user before installing' requires lot of
> manual work,
$ rpm -qp --requires openvpn-2.0-2.x86_64.rpm | grep useradd
/usr/sbin/useradd
$ rpm -qp --scripts openvpn-2.0-2.x86_64.rpm
preinstall scriptlet (using /bin/sh):
if ! id openvpn > /dev/null 2>&1 ; then
/usr/sbin/useradd -r -s /sbin/nologin -c OpenVPN -d /etc/openvpn openvpn
fi
[...]
And now: do this for a 'yum install ...' transaction which lists 100 new
packages and tell me all new users inclusive information like homedir,
shell and gecos...
Or for a nightly 'yum upgrade' operation which adds new packages because
of changed dependencies.
Enrico