Re: determining package creating group
Bob Proulx <bob@proulx.com> writes:
> Joe Pfeiffer wrote:
>> Due to some NIS misconfiguration (now fixed), I'm missing some groups
>> (notably netdev and bluetooth) on one of my machines. Is there a way to
>> determine which packages create those groups, so I can reinstall the
>> packages?
>
> I would grep through the postinst scripts for packages that create
> those groups. On my machine:
>
> $ cd /var/lib/dpkg/info
>
> $ find . -name '*.postinst' -exec grep -l -e netdev -e bluetooth {} +
> ./avahi-daemon.postinst
> ./gnome-bluetooth.postinst
> ./bluez.postinst
> ./wpasupplicant.postinst
This is exactly what I needed -- thanks!
(I wasn't aware the postinst scripts were kept around)
Reply to: