|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Removing a package in unix
I have a package that i'm going to be adding...i wanted to make sure i knew how to remove it prior to instalation..
expect-5.40-sol8-sparc-local.gz pkgadd -d ./expectpkg/ would the command to remove this package be... pkgrm expect-5.40-sol8-sparc-local or is the package instance not as simple as using the filename..? |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
You need to know the package name for expect and then
pkgrm <PKGNAME> if using a SFW packackage the name will be something like SMCexpect. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Thank you so much...
|
|
#4
|
|||
|
|||
|
If you don't know the package name, you should be able to get it from
pkginfo | grep -i expect or something similar to that. Pkginfo lists all the installed packages so if you have a decent guess as to what it might be called you should be able to grep for it and find the exact name. |
| Sponsored Links | |
|
|
#5
|
||||
|
||||
|
or
nawk '/expect/{print $NF}' /var/sadm/install/contents | sort -u |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
You can also use pkginfo on the original file to display various pieces of information about the package contained in it. For example:
pkginfo -d expect-5.40-sol8-sparc-local Also when you add the package it tells you the name of the package it is installing. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't install rpm package with --prefix in new path.Error: package is not relocatable | g_p | UNIX for Dummies Questions & Answers | 1 | 04-01-2012 11:18 AM |
| error in removing the package | ani_rvce | Solaris | 2 | 11-13-2008 04:27 PM |
| removing package. | lealyz | UNIX for Advanced & Expert Users | 1 | 12-12-2003 04:42 AM |
| anti-spam virus package for Unix | wwayne | Security | 2 | 07-17-2001 11:02 PM |
|
|