Subject: missing pkg_add -q
To: None <current-users@netbsd.org>
From: Zafer Aydogan <zafer@gmx.org>
List: current-users
Date: 06/24/2005 17:42:36
Hello List,
I noticed, that there is no "-q" quite option in pkg_add / pkg_delete.
Normally, there is no output, but sometimes, there is an additional info
text printed like:
===========================================================================
The following files and directories needed by cups-1.1.23nb2
have special permissions:
/usr/pkg/bin/lppasswd (o=lp, g=sys, m=4755)
===========================================================================
===========================================================================
The following files should be created for cups-1.1.23nb2:
/etc/rc.d/cupsd (m=0755)
[/usr/pkg/share/examples/rc.d/cupsd]
===========================================================================
===========================================================================
$NetBSD: MESSAGE,v 1.9 2003/06/25 11:47:40 reinoud Exp $
You will need to also install print/ghostscript-esp{,-nox11} if you wish
to print to non-Postscript printers.
You may install additional PPD files for other printer models into
/usr/pkg/share/cups/model.
You may want to backup /etc/printcap before starting CUPS for the first
time, as the CUPS scheduler may overwrite this file with automatically
generated content.
===========================================================================
for example (adding cups)
and following text when deleting this package:
===========================================================================
The following users are no longer being used by cups-1.1.23nb2,
and they can be removed if no other packages are using them:
lp
===========================================================================
===========================================================================
The following groups are no longer being used by cups-1.1.23nb2,
and they can be removed if no other packages are using them:
sys
===========================================================================
===========================================================================
The following files are no longer being used by cups-1.1.23nb2,
and they can be removed if no other packages are using them:
/usr/pkg/etc/cups/printers.conf
/usr/pkg/etc/cups/mime.types
/usr/pkg/etc/cups/mime.convs
/usr/pkg/etc/cups/cupsd.conf
/usr/pkg/etc/cups/client.conf
/usr/pkg/etc/cups/classes.conf
===========================================================================
===========================================================================
The following directories are no longer being used by cups-1.1.23nb2,
and they can be removed if no other packages are using them:
/var/spool/cups/tmp
/var/spool/cups
/var/log/cups
/usr/pkg/etc/cups/ppd
/usr/pkg/etc/cups/interfaces
/usr/pkg/etc/cups/certs
/usr/pkg/etc/cups
===========================================================================
it would be great to have an option to surpress this output, when using in
shell scripts, for example.
Thanks.
Zafer.