Solaris 11 package update

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Solaris 11 package update

Post by cah »

I was trying to compile DBD:MySQL perl module but experienced some issues.
I found out gcc is 32-bit binary and I want to compile some 64-bit apps. It shouldn't matter since I successfully compiled DBI perl module earlier.

While I was trying to update gcc, it didn't work because it was part of "consolidation/userland/userland-incorporation":

Code: Select all

orautil02:/%pkg install pkg://solaris/developer/gcc-45@4.5.2,5.11-0.175.1.0.0.24.0:20120904T171315Z
Creating Plan /                
pkg install: No matching version of developer/gcc-45 can be installed:
  Reject:  pkg://solaris/developer/gcc-45@4.5.2,5.11-0.175.1.0.0.24.0:20120904T171315Z
  Reason:  This version is excluded by installed incorporation pkg://solaris/consolidation/userland/userland-incorporation@0.5.11,5.11-0.175.0.0.0.2.537:20111019T091357Z
When I was trying to update "consolidation/userland/userland-incorporation", it complained again:

Code: Select all

orautil02:/%pkg update pkg://solaris/consolidation/userland/userland-incorporation@0.5.11,5.11-0.175.1.0.0.24.0:20120904T170613Z
Creating Plan -                
pkg update: No matching version of consolidation/userland/userland-incorporation can be installed:
  Reject:  pkg://solaris/consolidation/userland/userland-incorporation@0.5.11,5.11-0.175.1.0.0.24.0:20120904T170613Z
  Reason:  This version is excluded by installed incorporation pkg://solaris/entire@0.5.11,5.11-0.175.0.0.0.2.0:20111020T143822Z
So, I tried again to update the "entire" package:

Code: Select all

orautil02:/%pkg update entire                                              
           Packages to install:   7
            Packages to update: 259
           Mediators to change:   1
       Create boot environment: Yes
Create backup boot environment:  No

DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              266/266   9002/9002  255.4/255.4$<3>

PHASE                                        ACTIONS
Removal Phase                              2376/2376 
Install Phase                              2727/2727 
Update Phase                             11134/11134 

PHASE                                          ITEMS
Package State Update Phase                   525/525 
Package Cache Update Phase                   259/259 
Image State Update Phase                         2/2 

A clone of solaris exists and has been updated and activated.
On the next boot the Boot Environment solaris-1 will be
mounted on '/'.  Reboot when ready to switch to this updated BE.
I guess a reboot is needed for the new BE to be activated and all packages should be updated. At least 266 of them.

Boot environments list:

Code: Select all

orautil02:/%beadm list
BE        Active Mountpoint Space  Policy Created          
--        ------ ---------- -----  ------ -------          
solaris   N      /          11.46M static 2012-04-17 13:24 
solaris-1 R      -          8.82G  static 2014-02-04 17:27 
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Solaris 11 package update - II

Post by cah »

After rebooting the server, the new BE (solairs-1) was picked up and packages were updated.

Code: Select all

%beadm list
BE        Active Mountpoint Space  Policy Created          
--        ------ ---------- -----  ------ -------          
solaris   -      -          50.76M static 2012-04-17 13:24 
solaris-1 NR     /          8.99G  static 2014-02-04 17:27 
However, gcc package didn't seem to be updated:

Code: Select all

%pkg list | grep gcc
system/library/gcc-3-runtime                      3.4.3-0.175.0.0.0.2.537    i--
system/library/gcc-45-runtime                     4.5.2-0.175.0.0.0.2.537    i--
I think it is because I removed it before I updated entire package and that's why it didn't get pulled in.
I then tried to install it again.

Code: Select all

%pkg install pkg://solaris/developer/gcc-45@4.5.2,5.11-0.175.1.0.0.24.0:20120904T171315Z
Creating Plan -                
pkg install: No matching version of developer/gcc-45 can be installed:
  Reject:  pkg://solaris/developer/gcc-45@4.5.2,5.11-0.175.1.0.0.24.0:20120904T171315Z
  Reason:  This version is excluded by installed incorporation pkg://solaris/consolidation/userland/userland-incorporation@0.5.11,5.11-0.175.0.10.1.0.0:20120920T143021Z
Perhaps I was trying to install the old package.
So I tried the other way:

Code: Select all

%pkg install developer/gcc-45   
            Packages to remove:  1
           Packages to install:  1
       Create boot environment: No
Create backup boot environment: No
            Services to change:  1

DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  2/2     986/986  116.3/116.3$<3>

PHASE                                        ACTIONS
Removal Phase                                    9/9 
Install Phase                              1111/1111 

PHASE                                          ITEMS
Package State Update Phase                       2/2 
Package Cache Update Phase                       1/1
Image State Update Phase                         2/2 
This time, it installed and it shows up in pkg list:

Code: Select all

%pkg list | grep gcc
developer/gcc-45                                  4.5.2-0.175.0.0.0.2.537    i--
system/library/gcc-3-runtime                      3.4.3-0.175.0.0.0.2.537    i--
system/library/gcc-45-runtime                     4.5.2-0.175.0.0.0.2.537    i--
CAH, The Great
Post Reply