LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2008, 05:14 AM   #1
Selvanind
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
How could I get rid of this error? "RPM package is not installed"


Hi,
I have created an RPM file for the MAVEN Source using the command "rpmbuild -ba mvn.spec".
i can install the rpm using "rpm -ivh Apache-maven-2.0.9.rpm". But when I try to uninstall using "rpm -e Apache-maven", I get the error

"error: package Apache-maven is not installed"..

The content of My spec file is

Summary: A program that installs Maven2.0.9 from source code.
Name: Apache-maven
Version: 2.0.9
Release: 3
Source0: apache-maven-2.0.9-bin.tar.gz
License: ObjectStyle License
Group: Development

%description
Building maven

%prep
%setup -c

%build
%install
%clean




Why it is happening? Plz help me in this issue.
Thanks in advance...

Last edited by Selvanind; 06-11-2008 at 05:23 AM.
 
Old 06-11-2008, 05:19 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Hi and welcome to LQ.

What happens when you do
Code:
rpm -qa | grep -i apache
 
Old 06-12-2008, 12:35 AM   #3
Selvanind
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Not yet resolved...

[root@localhost srpms]# rpm -qa | grep -i apache
Apache-maven-debuginfo-2.0.8-3
[root@localhost srpms]#


two files are created in srpms(Apache-maven-2.0.8-3.src.rpm) and rpms(Apache-maven-debuginfo-2.0.8-3.i386.rpm).but the file in rpms is only get installed.the other one after installing when we try to uninstall,its showing "error : package is not installed"...

After installing RPM in linux machine where maven is not installed,when we try to run the mvn command,it's showing mvn command not found.
 
Old 06-12-2008, 05:41 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Well, from the output, it seems like Apache-maven is not installed. You only installed the debuginfo rpm which you can uninstall by doing "rpm -e Apache-maven-debuginfo".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 03:58 AM
Getting failed dependencies while installing the "nessus" package rpm on WRLinux manohare Linux - Software 0 10-09-2007 08:52 AM
perl install error: Can't locate object method "new" via package "Module::Build::Vers powah Linux - Software 0 10-24-2006 01:57 PM
When "function pointer" meets "template"... I can't get rid of this compiling er cyu021 Linux - Software 3 12-17-2004 07:52 PM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration