Sponsored Content
Operating Systems Solaris How to remove pkg from zone in newly created boot environment? Post 303035452 by samthewildone on Friday 24th of May 2019 12:57:05 PM
Old 05-24-2019
Not in-front of server right now but I believe the SRU was in mid/late 2018. As for the zone, it's not a branded zone but native.

--- Post updated at 04:57 PM ---

Was able to remove package from newly created boot environment below:
Code:
 pkg -R <<dir_of_mounted_be>> uninstall -r -z <<zone_name>> <<pkg_name>>

Example: You want to remove a package from within a zone in alternative boot environment?
Code:
 pkg -R /mnt uninstall -r -z chickens /barn/chickencoop/eggs


Last edited by samthewildone; 05-24-2019 at 02:01 PM.. Reason: changing wording
This User Gave Thanks to samthewildone For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to keep appending a newly created file based on some keywords

Hi Friends, I have to create a new log file everyday and append it with content based on some keywords found in another log file. Here is what I have tried so far... grep Error /parentfolder/someLogFile.log >> /parentfolder /Archive/"testlogfile_error_`date '+%d%m%y'`.txt" grep error... (6 Replies)
Discussion started by: supreet
6 Replies

2. Solaris

Update single zone in alternate boot environment.

I 'm having a weired situation my system has 8 zones, running fine on solaris x86_u4. I installed the live upgrade bundle patch and did a live upgrade. The new BE was created but it missed one of the zone and now if i mount the new BE i do not see that zone in the environment so my question is how... (3 Replies)
Discussion started by: fugitive
3 Replies

3. Shell Programming and Scripting

How to find the newly created directory

Hi, I need to create new directory by increasing the number by 1 of extracted lastly created directory. e.g. Log\out_log_1\ Log\out_log_2\ Log\out_log_3\ become Log\out_log_1\ Log\out_log_2\ Log\out_log_3\ Log\out_log_4\ Can anyone help how to do it in c-shell... (3 Replies)
Discussion started by: Andre_2008
3 Replies

4. Shell Programming and Scripting

sftp - get newly created files on incremental basis

Hi, We have a sftp server which creates files daily and keeps 6 months of files on the server. We are creating a daily job to get the files and load into database. My problem is "how to get ONLY those files which got created after my last get". Let me provide some more details to it. Below... (15 Replies)
Discussion started by: ravi.videla
15 Replies

5. UNIX for Advanced & Expert Users

default size of a newly created folder

Hi all, In linux how to create a directory with specified size, so that it can be used only up to the mentioned size. Actually my question is, whether we can do directory quota in linux. mounting the directory in a partiton will do that, but do we have any other option... (1 Reply)
Discussion started by: anishkumarv
1 Replies

6. Solaris

Can't see Newly created LUN by SAN admin

hello, i am an oracle DBA and trying to scan a newly created LUN of 200 GB on fiber channel by SAN admin.we have solaris 10 and SANtoolkit is installed.i tried following to get the new LUN at my machine. go /opt/Netapp/Santoolkit/bin and then ./sanlun lun show but i see only the existing... (12 Replies)
Discussion started by: janakors
12 Replies

7. Shell Programming and Scripting

Copy an array to a newly created directory

hello everyone, I am new to perl script and trying to develop a script as follows. I am trying to Create an array for storing all file names. I am trying to copy $libs into "scratch". however i am unable to do so. Please suggest.. #!/usr/bin/perl use File::Copy; #use... (5 Replies)
Discussion started by: Rashid Khan
5 Replies

8. Hardware

Formatting a newly created lun

Hi , I have created one new lun in my SAN storage and make it visible to my HP servers , but the fdisk -l output is somehow confusing. Do not know what to do next ---------- fdisk -l /dev/sdo1 Disk /dev/sdo1 (Sun disk label): 64 heads, 32 sectors, 10238 cylinders Units =... (7 Replies)
Discussion started by: mishra.sankar
7 Replies

9. Solaris

Pkg problem, one zone trying pkg.Oracle.com on port 1008

Hi Solaris Experts, The pkg utility on one of my non-global zones has stopped working, it's trying to connect to port 1008 at pkg.oracle.com I was using pkg successfully from this zone, but now it's showing this error: lzone1 $ pkg search xterm pkg: Some repositories failed to respond... (4 Replies)
Discussion started by: ad101
4 Replies

10. AIX

No iscsi available in newly created AIX wpar

AIX 7.1 New to WPAR, hopefully just missing something simple here. Creating the WPAR like this..... (The box where the WPAR is hosted does have an iscsi protocol device) mkwpar -h wpar08 -l -n wpar08 -N interface=en0 address=xxx.xx.xx.xxx netmask=255.255.255.0 -D devname=/dev/iscsi0 -D... (0 Replies)
Discussion started by: TomR
0 Replies
GPT-UNINSTALL(8)					User Contributed Perl Documentation					  GPT-UNINSTALL(8)

NAME
gpt-uninstall - Uninstall any GPT package. SYNOPSIS
gpt-uninstall [--force --help -name ] pkgname-flavor-pkgtype DESCRIPTION
gpt-uninstall will uninstall a package from the system. OPTIONS
-force This will force actions to take place. -native Use native package manager (Only works with rpm). pkgname-flavor-pkgtype Expression describing the packages that should be removed. -help Print a brief help message and exits. -man Prints the manual page and exits. -version Prints the version of GPT and exits. EXAMPLES
gpt-uninstall -name=foo removes all flavors and package types with the name "foo". gpt-uninstall foo Also removes all flavors and package types with the name "foo". gpt-uninstall 'foo-*-*' A third way of typing the same uninstall. Note the single quotes. gpt-uninstall '*-noflavor-*' Remove all of the packages with a 'noflavor' build flavor. gpt-uninstall '*-*-*' Remove all packages. Note that files generated by gpt-postinstall will not be removed BUGS
Currently the flavor check that gpt-uninstall uses only works if the flavor is installed by gpt-build. And so for example: gpt-uninstall foo-gcc32-* will not work. The work around is to uninstall the packages individually using something like: gpt-uninstall -name=foo -flavor=gcc32 -pkgtype=pgm Or use a wild card for the flavor to uninstall all flavors of the package. gpt-uninstall foo-*-* SEE ALSO
gpt-install(8) gpt-query(8) gpt-verify(8) gpt-postinstall(8) AUTHOR
Michael Bletzinger <mbletzin.ncsa.uiuc.edu> and Eric Blau <eblau.ncsa.uiuc.edu> perl v5.14.2 2012-04-30 GPT-UNINSTALL(8)
All times are GMT -4. The time now is 12:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy