Removing a package in unix | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


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.

Removing a package in unix

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-19-2006
cubs0729 cubs0729 is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 19 June 2006, 12:36 PM EDT
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 06-19-2006
reborg's Avatar
reborg reborg is offline Forum Advisor  
Administrator Emeritus
 
Join Date: Mar 2005
Last Activity: 29 March 2012, 7:00 PM EDT
Location: Ireland
Posts: 4,464
Thanks: 0
Thanked 11 Times in 11 Posts
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  
Old 06-19-2006
cubs0729 cubs0729 is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 19 June 2006, 12:36 PM EDT
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you so much...
    #4  
Old 06-19-2006
rhfrommn rhfrommn is offline Forum Advisor  
Registered User
 
Join Date: Nov 2003
Last Activity: 25 January 2012, 5:08 PM EST
Location: Minnesota
Posts: 447
Thanks: 0
Thanked 2 Times in 2 Posts
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  
Old 06-19-2006
reborg's Avatar
reborg reborg is offline Forum Advisor  
Administrator Emeritus
 
Join Date: Mar 2005
Last Activity: 29 March 2012, 7:00 PM EDT
Location: Ireland
Posts: 4,464
Thanks: 0
Thanked 11 Times in 11 Posts
or

nawk '/expect/{print $NF}' /var/sadm/install/contents | sort -u
Sponsored Links
    #6  
Old 06-21-2006
Unbeliever Unbeliever is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 14 September 2007, 11:54 AM EDT
Location: England
Posts: 183
Thanks: 0
Thanked 1 Time in 1 Post
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



All times are GMT -4. The time now is 03:53 PM.