Skip to main content

Updating bash shell on Oracle Solaris 11.2 without SRU update

Oracle will release periodic updates for Oracle Solaris Operating System packages as Support Repository Updates (SRU). The latest available SRU is "Oracle Solaris 11.2.3.4.1 Support Repository Update"

Each SRU contains updates for multiple packages. If you want to update a specific package then you need to use locking mechanism on packages.

This method will be helpful if customers are not willing to update full SRU Immediately. They can update individual packages according to their requirements and at later stage they can update the complete SRU.

In this demonstration we will update bash shell independently of SRU cycle.

Steps:

- Check Existing version of bash

root@soltest1:~# pkg list bash
pkg list bash
NAME (PUBLISHER)                                  VERSION                    IFO
shell/bash                                        4.1.11-0.175.2.0.0.42.1    i--


- Check for available updates

root@soltest1:~# pkg list -af shell/bash
pkg list -af shell/bash
NAME (PUBLISHER)                                  VERSION                    IFO
shell/bash                                        4.1.11-0.175.2.3.0.4.0     ---
shell/bash                                        4.1.11-0.175.2.2.0.8.0     ---
shell/bash                                        4.1.11-0.175.2.2.0.7.0     ---
shell/bash                                        4.1.11-0.175.2.0.0.42.1    i--
shell/bash                                        4.1.9-0.175.1.13.0.1.0     ---
shell/bash                                        4.1.9-0.175.1.0.0.24.0     ---
shell/bash                                        4.1.9-0.175.0.0.0.2.537    ---
shell/bash                                        4.0.28-0.151.0.1           ---
root@soltest1:~# 

Installed version - 4.1.11-0.175.2.0.0.42.1

- Check package contents and lock status

root@soltest1:~# pkg contents -m userland-incorporation | grep shell/bash
pkg contents -m userland-incorporation | grep shell/bash
depend facet.version-lock.shell/bash=true fmri=pkg:/shell/bash@4.1.11-0.175.2.0.0.42.1 type=incorporate


root@soltest1:~# pkg facet -a version-lock.shell/bash
pkg facet -a version-lock.shell/bash
FACET                                                            VALUE SRC
facet.version-lock.shell/bash                                    True  system
root@soltest1:~# 


-  Lets try to update bash/shell without changing its facet "lock" status

root@soltest1:~# pkg update shell/bash@4.1.11-0.175.2.3.0.4.0
pkg update shell/bash@4.1.11-0.175.2.3.0.4.0
Creating Plan (Solver setup): /
pkg update: No matching version of shell/bash can be installed:
  Reject:  pkg://solaris/shell/bash@4.1.11,5.11-0.175.2.3.0.4.0:20141002T223817Z
  Reason:  This version is excluded by installed incorporation pkg://solaris/consolidation/userland/userland-incorporation@0.5.11,5.11-0.175.2.0.0.42.1:20140623T010405Z
root@soltest1:~# 


It will not proceed as its not able to find the matching version of other packages.


- Change the facet value for shell/bash

root@soltest1:~# pkg change-facet -r version-lock.shell/bash=false
pkg change-facet -r version-lock.shell/bash=false
            Packages to change:   1
     Variants/Facets to change:   1
       Create boot environment:  No
Create backup boot environment: Yes
PHASE                                          ITEMS
Removing old actions                             1/1
Updating package state database                 Done 
Updating package cache                           0/0 
Updating image state                            Done 
Creating fast lookup database                   Done 
Updating package cache                           1/1 
root@soltest1:~# 




- Update shell/bash package with specific SRU release

root@soltest1:~# pkg update shell/bash@4.1.11-0.175.2.3.0.4.0
pkg update shell/bash@4.1.11-0.175.2.3.0.4.0
            Packages to update:   1
       Create boot environment:  No
Create backup boot environment: Yes
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                1/1           5/5      0.5/0.5 38.9k/s

PHASE                                          ITEMS
Removing old actions                             3/3
Installing new actions                           5/5
Updating modified actions                        3/3
Updating package state database                 Done 
Updating package cache                           1/1 
Updating image state                            Done 
Creating fast lookup database                   Done 
Updating package cache                           1/1 
root@soltest1:~# 



- Check the Installed version of shell/bash

root@soltest1:~# pkg list -af shell/bash
pkg list -af shell/bash
NAME (PUBLISHER)                                  VERSION                    IFO
shell/bash                                        4.1.11-0.175.2.3.0.4.0     i--
shell/bash                                        4.1.11-0.175.2.2.0.8.0     ---
shell/bash                                        4.1.11-0.175.2.2.0.7.0     ---
shell/bash                                        4.1.11-0.175.2.0.0.42.1    ---
shell/bash                                        4.1.9-0.175.1.13.0.1.0     ---
shell/bash                                        4.1.9-0.175.1.0.0.24.0     ---
shell/bash                                        4.1.9-0.175.0.0.0.2.537    ---
shell/bash                                        4.0.28-0.151.0.1           ---
root@soltest1:~# 


The shell/bash package has been updated. The facet value of the package cannot be changed until you update the full SRU.

After updating the full SRU and  rebooting system from the updated B.E. the facet value can be changed.


- Change the facet value

root@soltest1:~# pkg facet -a version-lock.shell/bash
FACET                                                            VALUE SRC
facet.version-lock.shell/bash                                    False local
root@soltest1:~# 


root@soltest1:~# pkg change-facet  version-lock.shell/bash=true
            Packages to change:   1
     Variants/Facets to change:   1
       Create boot environment:  No
Create backup boot environment: Yes
PHASE                                          ITEMS
Installing new actions                           1/1
Updating package state database                 Done 
Updating package cache                           0/0 
Updating image state                            Done 
Creating fast lookup database                   Done 
Updating package cache                           1/1 
root@soltest1:~# pkg facet -a version-lock.shell/bash
FACET                                                            VALUE SRC
facet.version-lock.shell/bash                                    True  local
root@soltest1:~# 


Same procedure is applicable for other packages as well. All packages can be updated individually without SRU cycle.

Thanks for reading.

regards,
X A H E E R



Comments

Anonymous said…
hello! thank you! it's realy work! But how update shell if i have non-global zones?
Blogger said…
This way my partner Wesley Virgin's autobiography starts with this SHOCKING AND CONTROVERSIAL video.

You see, Wesley was in the military-and soon after leaving-he revealed hidden, "SELF MIND CONTROL" secrets that the government and others used to get whatever they want.

THESE are the exact same methods many famous people (especially those who "come out of nothing") and elite business people used to become wealthy and successful.

You probably know that you use less than 10% of your brain.

That's mostly because the majority of your brainpower is UNCONSCIOUS.

Perhaps this expression has even taken place INSIDE OF YOUR very own brain... as it did in my good friend Wesley Virgin's brain about seven years ago, while riding a non-registered, beat-up bucket of a car without a license and $3.20 on his debit card.

"I'm very frustrated with going through life paycheck to paycheck! Why can't I become successful?"

You've been a part of those those types of conversations, am I right?

Your success story is waiting to be written. You need to start believing in YOURSELF.

UNLOCK YOUR SECRET BRAINPOWER

Popular posts from this blog

Disable Firewall on Oracle Linux 8

In this blogpost we will see how we can stop/disable the firewall on Oracle Linux 8, the firewall command is same in both linux 7 an linux 8. The below listed is the procedure for stopping and disabling the  firewall on Oracle Linux 8. - Here we can see the firewall deamon in active state - Here when we stop the firewall in previous command, now the firewall daemon is dead - For permanent disabling the firewall on server, we can use "disable" option The following commands will be helpful: #systemctl status firewalld #systemctl stop firewalld #systemctl disable firewalld #systemctl enable firewalld #systemctl start firewalld Hope it helps !! Thanks for reading :) regards, X A H E E R

Enable Desktop on Oracle Solaris 11.4

Oracle Solaris 11 installation has multiple options to choose for installation of an Operating Environment, but mostly Oracle Solaris text install media is used and this installation media doesn't offer the GUI Desktop Environment by default after the installation. This blog post will explain how we can enable the desktop for Oracle Solaris 11.4 operating system, after the completion of installation. We have to install "solaris-desktop" package and reboot the machine and GUI desktop will be enabled for the Operating System. In this blog post my virtual machine is connected to the internet and hence I am able to use available pupblic repository for package installation, if in case internet is not available for the server/machine then we have configure the local/Server  repository for the installation. Follow the below steps for desktop package installation: After installation of dekstop package we are now able to login with GUI desktop environment

Oracle Applications R12.2 Installation on Linux using virtual box

Oracle E-Business suite R12.2 is released a month ago. I received too many requests from my followers to demonstrate this Installation. This is a step by step detailed article for Installing Oracle E-business suite R12,2 on Oracle Enterprise Linux 5.7 (64-bit). I've used oracle virtual box for Installing Linux. Note:  This Installation is demonstrated on virtual machine with 8GB RAM and Installation completed in 7 hours. I am not sure whether this Installation will work with less than this .  My Virtual Machine configuration: CPU    = 1 core RAM   = 8 GB HDD   =  380 GB Software's Required: 1) Oracle Virtual Box 2) Oracle Enterprise Linux 5.7 (64-bit) 3) Oracle E-Business suite R12.2 for LinuxX86-64-bit Installation Steps: Hardware requirements Create virtual machine and Install operating system Operating System pre-requisites Prepare Stage Area Install Oracle EBS R12.2 software Verify Installation 1. Hardware Requirement