[csw-users] Upgrading All Packages

James Lee james at blastwave.org
Wed Apr 5 10:45:19 CEST 2006


On 05/04/06, 05:03:05, Jeff Chan <jeff at cdsinc.com> wrote regarding 
[csw-users] Upgrading All Packages:

> Is there any way to prevent pkg-get from checking to see if it's okay to
> remove a package & upgrade?  Almost like admin-fullauto but also for
> upgrades & packages removals.


> The following package is currently installed:
>    CSWoldap  openldap - ldap clients,libraries and server
>              (i386) 2.1.30,REV=2005.09.27

> Do you want to remove this package? [y,n,?,q]

Ues the -f flag for pkg-get, it passes -n to pkgrm:

$ man pkg-get

...
     -f   Force default action on pkg add  or  remove;  Dont  ask
          questions.   This  may  mean  that  it  will  refuse to
          install some packages, depending  on  what  the  pkgadd
          defaults  are,  whether  there are conflicts, etc.  The
          'normal'      defaults      are      specified       in
          /var/sadm/install/admin/default.  See the "MORE AUTOMA-
          TION" section at the bottom of this manpage.
...





James.



More information about the users mailing list