Removing a package in unix


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Removing a package in unix
# 1  
Old 06-19-2006
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..?
# 2  
Old 06-19-2006
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.
# 3  
Old 06-19-2006
Thank you so much...
# 4  
Old 06-19-2006
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.
# 5  
Old 06-19-2006
or

nawk '/expect/{print $NF}' /var/sadm/install/contents | sort -u
# 6  
Old 06-21-2006
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Automating an UNIX Based Software Package on Windows

The company I am with is using Oracle Supply Chain Planing 8.12.1 with JDE 8.12. This is a Unix based system running on Windows Servers using Hummingbird Exceed Version 14 for interactive processing We are currently attempting to automate the Advance Planning Agent flows on a couple of... (2 Replies)
Discussion started by: pfaloney
2 Replies

2. UNIX for Dummies Questions & Answers

Package release on UNIX environment

Hi, Can some one tell what is Package release on UNIX environment. Thanks, Nag (1 Reply)
Discussion started by: nag_sathi
1 Replies

3. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

4. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies

5. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

6. Shell Programming and Scripting

Calling oracle package Unix from shell scripts.

Hi, Can anyone tell me how to call a oracle package from a Unix shell script? I want to pass some input parameters to package and it will return me the output which I want to use further in my shell script. I want to know the way to capture the output values in my shell script. Please send some... (1 Reply)
Discussion started by: anil029
1 Replies

7. Solaris

error in removing the package

hi all, i have installed gcc-3.4.6-sol10-sparc-local package on unix system. i tried removing this with the command pkgrm but getting the below error.. pkgrm gcc-3.4.6-sol10-sparc-local pkgrm: ERROR: no package associated with <gcc-3.4.6-sol10-sparc-local> can any one suggest me how... (2 Replies)
Discussion started by: ani_rvce
2 Replies

8. UNIX for Advanced & Expert Users

removing package.

i am in d process of buidling qmail on my freebsd. I am through except that i cannot run qmailctl effectively because i had a problem installing daemontools. i was unable to run this command line; patch < /usr/local/src/netqmail−1.04/other−patches/daemontools−0.76.errno.patch and i beleive... (1 Reply)
Discussion started by: lealyz
1 Replies

9. Cybersecurity

anti-spam virus package for Unix

:( Is there anyone know the anti-spam and anti- virus package software list for Unix !!?? Where can I find that, I have no idea in searching through the internet! (2 Replies)
Discussion started by: wwayne
2 Replies
Login or Register to Ask a Question