[csw-users] Safe to let pkg-get -u Upgrade pkg-get?

Dennis Clarke dclarke at blastwave.org
Thu Feb 21 22:05:35 CET 2008


> So I'm trying to install ImageMagick on Solaris 10 using Blastwave.
>
> I run pkg-get to install it, and it tells me I need to upgrade some
> png app or something.  I run the command it recommends, and in the
> process of upgrading various packages, it tells me that pkg-get
> itself needs to be upgraded. Is it safe to let it upgrade itself?  Or
> when I say "yes" that it's okay to uninstall it (prior to it
> installing the latest version), will it no longer be able to upgrade
> itself (as it's been removed)?
>
> Hope that's clear.
>
>
> For the record, I told it "no" and it continued with other upgrades,
> but if it's safe to do, I'll run it again.
>

Well the answer is yes and no.

There was a problem with earlier versions on pkg-get in that they may remove
wget from under itself and then we are stuck not able to upgrade. On Solaris
10 you should not have the problem because there is generally a copy of wget
in /usr/sfw/bin and pkg-get is mighty cunning at looking around for things
like that. :-)

The absolute safe thing to do is something like this :

cd /tmp
/opt/csw/bin/pkg-get -U
/opt/csw/bin/pkg-get -d pkg_get
pkgrm CSWpkgget
pkgadd -d ./pkg_get-3.8.4-SunOS5.8-all-CSW.pkg

Now you have the latest ... life is good.

Dennis




More information about the users mailing list