Re: [Pkgutil-users] dumb question
Status: Beta
Brought to you by:
bonivart
|
From: Dennis C. <dc...@bl...> - 2009-12-20 03:17:49
|
>
> I use pkgutil to install a bunch of packages from Blastwave.
>
Use the barely documented -S option to suppress the license display.
Thus, here is a manual upgrade on a very old and very stable Solaris 10
server. I will upgrade to pkgutil 1.6.1 which seems to work very well and
does not fall over due to cyclic dependency issues :
# uname -a
SunOS lw-global 5.10 Generic_118822-25 sun4u sparc SUNW,Ultra-2
# cat /etc/release
Solaris 10 1/06 s10s_u1wos_19a SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 07 December 2005
# pkgrm CSWpkgutil
The following package is currently installed:
CSWpkgutil pkgutil - installs Solaris packages easily
(sparc) 1.3.1,REV=2008.12.17
Do you want to remove this package? [y,n,?,q] y
## Removing installed package instance <CSWpkgutil>
This package contains scripts which will be executed with super-user
permission during the process of removing this package.
Do you want to continue with the removal of this package [y,n,?,q] y
## Verifying package <CSWpkgutil> dependencies in global zone
## Processing package information.
## Executing preremove script.
## Removing pathnames in class <none>
/var/opt/csw/pkgutil/packages
/var/opt/csw/pkgutil/admin.CSW
/var/opt/csw/pkgutil <non-empty directory not removed>
/var/opt/csw <shared pathname not removed>
/opt/csw/share/man/man1/pkgutil.1
/opt/csw/share/man/man1 <shared pathname not removed>
/opt/csw/share/man <shared pathname not removed>
/opt/csw/share/doc/pkgutil/readme
/opt/csw/share/doc/pkgutil/LICENSE
/opt/csw/share/doc/pkgutil
/opt/csw/share/doc <shared pathname not removed>
/opt/csw/share <shared pathname not removed>
/opt/csw/libexec/pkgutil/wget
/opt/csw/libexec/pkgutil
/opt/csw/libexec <shared pathname not removed>
/opt/csw/etc/pkgutil.conf.CSW
/opt/csw/etc <shared pathname not removed>
/opt/csw/bin/pkgutil
/opt/csw/bin/chkcat
/opt/csw/bin/bldcat
/opt/csw/bin <shared pathname not removed>
/opt/csw <shared pathname not removed>
## Updating system information.
Removal of <CSWpkgutil> was successful.
# /opt/csw/bin/wget -q http://blastwave.network.com/csw/pkgutil_sparc.pkg
# pkgadd -S -G -d pkgutil_sparc.pkg all
Processing package instance <CSWpkgutil> from </root/pkgutil_sparc.pkg>
pkgutil - Installs Solaris packages easily(sparc) 1.6.1,REV=2009.06.15
## Processing package information.
## Processing system information.
11 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <CSWpkgutil> [y,n,?] y
Installing pkgutil - Installs Solaris packages easily as <CSWpkgutil>
## Installing part 1 of 1.
/etc/opt/csw/pkgutil.conf.CSW
/opt/csw/bin/bldcat
/opt/csw/bin/chkcat
/opt/csw/bin/pkgutil
/opt/csw/etc/pkgutil.conf.CSW
/opt/csw/libexec/pkgutil/wget
/opt/csw/share/doc/pkgutil/license
/opt/csw/share/doc/pkgutil/readme
/opt/csw/share/man/man1/bldcat.1
/opt/csw/share/man/man1/chkcat.1
/opt/csw/share/man/man1/pkgutil.1
/var/opt/csw/pkgutil/admin.CSW
[ verifying class <none> ]
## Executing postinstall script.
Installation of <CSWpkgutil> was successful.
#
Then remove the conf file in the non-standard location :
# rm /opt/csw/etc/pkgutil.conf
Edit the correctly located conf file and slide in the -S option for pkgadd
# vi /etc/opt/csw/pkgutil.conf
When done it looks like this :
# /usr/xpg4/bin/grep -v -E "^#|^$" /etc/opt/csw/pkgutil.conf
mirror=http://blastwave.network.com/csw/unstable
pkgaddopts=-G -S
wgetopts=-q
use_md5=true
# /opt/csw/bin/pkgutil --catalog
Fetching new catalog http://blastwave.network.com/csw/unstable/sparc/5.10
if available...
If you install a package you will not see the license anymore.
--
Dennis Clarke
dc...@op... <- Email related to the open source Solaris
dc...@bl... <- Email related to open source for Solaris
|