RPM Installation & Removal issue

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat RPM Installation & Removal issue
# 1  
Old 06-24-2010
RPM Installation & Removal issue

Hi,

I created an RPM for one of our internal serer: tel-gw--2010.05.1.0-SNAPSHOT-1.rpm

What happened I Installed for 5 times, and it get installed (/usr/tel-gw/) & added 5 entries into rpm db. And when I query RPM db as "
Code:
rpm -qa | grep tel-gw--2010.05.1.0-SNAPSHOT-1

", it shows 5 times in listing:

Code:
#rpm -qa | grep tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
#

I tried to remove using:
1.
Code:
rpm -e tel-gw--2010.05.1.0-SNAPSHOT-1

2.
Code:
rpm -e tel-gw

but wont get succerpm -e tel-gweded to remove.

Also, I tried :
Code:
rpm -e tel-gw --allmatches

and
Code:
rpm -qa | grep tel-gw | xargs rpm -e

, but again not succeeded.

P.S
When I tried using,
Code:
rpm -qa | grep tel-gw | xargs rpm -e

, it gives an error:
Code:
error: package tel-gw--2010.05.1.0-SNAPSHOT-1 is not installed.

But later, if I fire "
Code:
rpm -qa | grep tel-gw--2010.05.1.0-SNAPSHOT-1

", it shows the same 5 entries as earlier.Please help how to remove.

---------- Post updated at 09:19 AM ---------- Previous update was at 04:43 AM ----------

Quote:
Originally Posted by jw_amp
Hi,

I created an RPM for one of our internal serer: tel-gw--2010.05.1.0-SNAPSHOT-1.rpm

What happened I Installed for 5 times, and it get installed (/usr/tel-gw/) & added 5 entries into rpm db. And when I query RPM db as "
Code:
rpm -qa | grep tel-gw--2010.05.1.0-SNAPSHOT-1

", it shows 5 times in listing:

Code:
#rpm -qa | grep tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
tel-gw--2010.05.1.0-SNAPSHOT-1
#

I tried to remove using:
1.
Code:
rpm -e tel-gw--2010.05.1.0-SNAPSHOT-1

2.
Code:
rpm -e tel-gw

but wont get succerpm -e tel-gweded to remove.

Also, I tried :
Code:
rpm -e tel-gw --allmatches

and
Code:
rpm -qa | grep tel-gw | xargs rpm -e

, but again not succeeded.

P.S
When I tried using,
Code:
rpm -qa | grep tel-gw | xargs rpm -e

, it gives an error:
Code:
error: package tel-gw--2010.05.1.0-SNAPSHOT-1 is not installed.

But later, if I fire "
Code:
rpm -qa | grep tel-gw--2010.05.1.0-SNAPSHOT-1

", it shows the same 5 entries as earlier.Please help how to remove.

Hey everybody .... I fix that .... by writing ....

Code:
rpm -e  --allmatches --noscripts --repackage tel-gw-

Just forgot to mention earlier, that my package name was 'tel-gw-'.
So, what I did, I created the RPM package again (tel-gw-) and fire the above command.

Last edited by pludi; 06-24-2010 at 06:49 AM.. Reason: code tags, please...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Q on RPM, conditional install or removal, like installf, removef

I am creating binary RPM on RedHat 6 and would like to do this: at install time, depending on situation, install a file or not install it For comparison, I do this on solaris using "installf", is there a way of achieving similar functionality in RPM? And conversely for conditional... (4 Replies)
Discussion started by: ad101
4 Replies

2. AIX

Rpm issue with autoconf-2.63-1.AIX6.1.noarch.rpm

dears i am trying to install the autoconf-2.63-1.aix6.1.noarch.rpm but its shows the below error message . P700_dev/svn/dependencies>rpm -i autoconf-2.63-1.aix6.1.noarch.rpm error: failed dependencies: m4 is needed by autoconf-2.63-1 P700_dev/svn/dependencies> (6 Replies)
Discussion started by: thecobra151
6 Replies

3. Red Hat

Problem with rpm installation

When i try to install rpm with rpm -ivh ntp* it shows package is already install and when i query for same package it shows package is not installed ?How to resolve DSA signature error for rpm? How to choose rpm package except redhat version(el5) and architecture(i386) and site link for that? (5 Replies)
Discussion started by: amitbharad
5 Replies

4. Fedora

Install RPM package after OS Installation

Hi Guys I want to know whether is it possible to automatically Install a RPM package after installing OS. Basically we have have one rpm package which we want to install as part of OS installation . Please Suggest (3 Replies)
Discussion started by: mr_deb
3 Replies

5. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

6. Red Hat

RPM Updation & Keeping User Change files during removal

Hi All, I have a RPM for an Java based application. Currently it works fine. But recently I want to implement that when newer packages gets installed over the older one, the rpm should only update the older files with the newer one (I know this could be done by rpm -Uvh xxx.rpm), but it... (0 Replies)
Discussion started by: jw_amp
0 Replies

7. Red Hat

Remote installation of rpm package (Using YUM)

Hi, I have configured YUM repository on a server and we have 10 linux machine (clients). Is there any way we can install a package on all the 10 machines from YUM repository server? Please help me. (7 Replies)
Discussion started by: uday123
7 Replies

8. Red Hat

RPM package installation

Hi, can someone help me with this? How do we apply a new version of s/w package without disrupting the processes & daemons running with the old version? Thanks (1 Reply)
Discussion started by: naan
1 Replies

9. Red Hat

expect rpm installation!

Hi , I am tryin to install expect rpm on my linux machine. I have the source file expect-5.42.1-1.src.rpm I am doin this rpm -ivh expect-5.42.1-1.src.rpm But I am gettin this error warning: expect-5.42.1-1.src.rpm: V3 DSA signature : NOKEY, key ID db42a60e error: cannot... (2 Replies)
Discussion started by: eamani_sun
2 Replies

10. Shell Programming and Scripting

RPM Installation

Hi, I need a script for "Installting RPM with using double clicking like windows installation" not by command prompt. Kammy (2 Replies)
Discussion started by: kjannu
2 Replies
Login or Register to Ask a Question