Hi! This is a rpm question. For example, mysql-server is adding mysql user with uid 27 Is this something I can ask the rpm db? It seems not, because something like the following seems to give me no useful information regarding users or uids $ rpm -qa --provides|grep mysql I would like to ask: what package would install uid XXX. How? Not possible? -- Kind Regards, Markus Falb -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 307 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20120521/b1980c55/attachment.sig>
On 05/21/12 1:51 PM, Markus Falb wrote:> This is a rpm question. > For example, mysql-server is adding mysql user with uid 27 > Is this something I can ask the rpm db? > > It seems not, because something like the following seems to give me no > useful information regarding users or uids > > $ rpm -qa --provides|grep mysql > > I would like to ask: what package would install uid XXX. How? Not possible?afaik, its done by shell scripts that are embedded in the package and run before or after the files in the package are copied. so, there's no real way to do it, short of querying all those preinstall/postinstall scripts and somehow parsing them for useradd type commands. -- john r pierce N 37, W 122 santa cruz ca mid-left coast
From: Markus Falb <markus.falb at fasel.at>>For example, mysql-server is adding mysql user with uid 27 >Is this something I can ask the rpm db?rpm -qa | sort | while read PKG; do echo $PKG; rpm -q --scripts $PKG | grep -- "-u 27"; done JD