How to remove a pkg ,urgent!!


 
Thread Tools Search this Thread
Operating Systems Solaris How to remove a pkg ,urgent!!
# 1  
Old 05-11-2008
How to remove a pkg ,urgent!!

HI all,
I would like to know, how we can remove a package?
I know that pkgrm will do the job ,but specifying the right kinda package is important..
And i dont know how to figure that one out?
Eg:if i have installed a pkg called virtualbox,
If i do,
pkgrm SUNWvirtualbox ,it says "no such file or directory"..
so how do i figure out the where that particluar package is ?
Also it would be great if you could specify the PATH to the pkg!!!
This is kinda urgent,pls assist(AM using solaris b83)

Regards!!!
Wrapster
# 2  
Old 05-11-2008
Try doing this to find out the name of the package:
# pkginfo -l | grep -i "box".
Be sure to do the next step to confirm this is the right package:
# pkginfo -l <pkg-name from above>

or if you know the name of any binary command that came with this package, (one of the 2 pkgchks below needs a full pathname to the binary/filename that you want to check -- I don't remember whether it's the "P" or the "p". Check that before using these commands.)

# pkgchk -l -P <cmd-name or filename>
or
# pkgchk -l -p <cmd-name or filename>

or

you can find out which package a command/file belongs to by grep'ing for it in /var/sadm/install/contents.
# 3  
Old 05-11-2008
Beware than more than one package may have been installed depending on the application. One simple way to know what were the latest packages installed:
# ls -ltr /var/sadm/pkg | tail
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

How to remove pkg from zone in newly created boot environment?

fyi, I already have SR opened with Oracle. We are looking to upgrade from S11.3 to S11.4 with the latest SRU. Create new BE; success Mount new BE; success pkg -R /mnt update the updating of the global went fine until it touched local zone. pkg: update failed (linked image... (2 Replies)
Discussion started by: samthewildone
2 Replies

2. Post Here to Contact Site Administrators and Moderators

Urgent : please remove the names from the post

Hi Sir, There is an escalation going on this and could you please remove the words from the following link . this is really critical. https://www.unix.com/shell-programming-and-scripting/196647-remove-headings.html please remove following terms fiappl17dev fiappl18dev ... (1 Reply)
Discussion started by: ptappeta
1 Replies

3. Solaris

# pkg publisher gives bash: pkg: command not found

This is the operating system im using Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC I need to install some packages by setting local repository While i run the below command # pkg publisher command returns bash: pkg: command not found while looking for /usr/bin/pkg i get bash:... (2 Replies)
Discussion started by: babinlonston
2 Replies

4. 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

5. UNIX for Dummies Questions & Answers

Urgent - XML Attribute Remove

Hi I have got a XML file which has got content as follows: <FUNCall81110000 Tag="81110000" CallDate="25/08/11" CallTime="00:03:22" TotalUsageValue="30" MeasurementUnit="1"/> I want to remove TotalUsageValue="30" only and TotalUsageValue="XXXXX" here XXX can be any value. (1 Reply)
Discussion started by: muchyog
1 Replies

6. Solaris

How extract SUNWexplo.7.1.pkg & SUNWexplu.7.1.pkg from install_stb.sh?

Hi all, Could please guideas how to extract SUNWexplo.7.2.pkg & SUNWexplu.7.2.pkg from install_stb.sh. I need to upgrade my Sun Explorer to 7.2 version from 7.1 . This what written in read me file about its installation: The Lightweight Availability Collection Tool (LWACT) is no... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

7. Solaris

remove dir from inherit-pkg-dir

hi i configured zone and have 4 files /usr and /lib /platform /sbin from global zone and i want to exclude /usr/local from /usr any one has an idea ? (2 Replies)
Discussion started by: maxim42
2 Replies

8. UNIX for Dummies Questions & Answers

accidentally remove the contents of /var/sadm/pkg

Hi all, I carelessly remove the contents of /var/sadm/pkg. I do not have any backup of the folder. What can I do ? Thanks a lot. :eek: (11 Replies)
Discussion started by: stancwong
11 Replies

9. Shell Programming and Scripting

help me to remove the whitespaces between the lines ...urgent

Hello all, i have a problem. please help me to remove the white spaces and tabs betweeen line. i.e., file1 contains some text.. text starts_hdsffdsd sdfsddssdds******** sdfsdsd*********** sdfsdsdfsdsdfsdsds*** ****fsd_test_ends one or 2 blank lines (* indicates white spaces or tabs) ... (5 Replies)
Discussion started by: kumar1
5 Replies
Login or Register to Ask a Question