LinuxQuestions.org
Review your favorite Linux distribution.
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 07-24-2004, 10:48 PM   #1
ticky87
LQ Newbie
 
Registered: Jun 2004
Location: Cambridge, MA
Distribution: RHEL4
Posts: 22

Rep: Reputation: 15
Angry RPM is saying installed packages aren't installed


I'm quite confused with all this installing stuff. I still don't know if I have installed anything or not. The big problem is that I have several rpms that I'm trying to get to work to see if Linux will recognize my winmodem/sound card. After I run rpm once, it gives me a package not signed error which I don't think is of any real importance. Then I try to verify or query the package and rpm informs me that the package is not installed. So I try to install the rpm again, however it then gives me an error saying that the package is already installed. I looked through the forum and despite this being an very recent clean install of FC2, I tried rebuilding the rpm database, with no change in the outcome. What is going wrong and how can I fix it?
In a slightly related question, I tried to find and use the kpackage program to see if I could have an easier time installing rpms but I couldn't find it anyway. Know where I can get it?
 
Old 07-25-2004, 06:44 AM   #2
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
The packages are installed under a different name that what you were given.

Tell me the name of the installed package and the rpm query you are using.

in the meantime read over this post.

http://www.linuxquestions.org/questi...hreadid=207688
 
Old 07-25-2004, 07:52 PM   #3
ticky87
LQ Newbie
 
Registered: Jun 2004
Location: Cambridge, MA
Distribution: RHEL4
Posts: 22

Original Poster
Rep: Reputation: 15
This is just one example of the several packages that I have installed.
I downloaded the package j2sdk-1_4_2_04-linux-i583.rpm from the java website. The rpm command I am using is
Code:
rpm -qip j2sdk-1_4_2_04-linux-i583.rpm
I copied this command from a Linux book in 98 but the output I am getting is the same as the example in the book.
The output is
Code:
Name        : j2sdk                        Relocations: (not relocatable)
Version     : 1.4.2_04                          Vendor: Sun Microsystems
Release     : fcs                           Build Date: Tue 24 Feb 2004 10:09:03 AM CST
Install Date: (not installed)               Build Host: localhost.localdomain
Group       : Development/Tools             Source RPM: j2sdk-1.4.2_04-fcs.src.rpm
Size        : 65767593                         License: 1994-2001 Sun Microsystems, Inc.
Signature   : (none)
Packager    : Java Software <j2se-comments@java.sun.com>
URL         : http://java.sun.com/linux
Summary     : Java(TM) 2 Software Development Kit, Standard Edition
Description :
The Java 2 SDK, Standard Edition includes the Java
Virtual Machine, core class libraries and tools used
by programmers to develop Java software applets and
applications. The SDK also provides the foundation
for IDE (Integrated Development Environment) tools
such as Sun's Forte for Java, Community Edition,
the Java(TM) 2 Platform, Enterprise Edition (J2EE),
Java-based application servers and more.
The Java 2 Software Development Kit, SDK, is a
development environment for building applications,
applets, and components that can be deployed on
the Java platform. The Java 2 SDK software includes
tools useful for developing and testing programs
written in the Java programming language and running
on the Java platform.  These tools are designed to
be used from the command line.  Except for
appletviewer, these tools do not provide a
graphical user interface.
However, I read the thread you recommended and tried
rpm -qa | grep j2sdk
and it gave me this: j2sdk-1.4.2_04-fcs
Now at I know the install worked correctly but how am I supposed to find out the "correct" package name of what I install? Also, this install didn't create a link to the java program in any of my path directories, is there a reason for this, or can I just create links for the programs that I want save some typing for?

Last edited by ticky87; 07-25-2004 at 07:55 PM.
 
Old 07-25-2004, 08:02 PM   #4
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
What you did was correct.

Most of the time the package name will directly relate to its name in the system.

Remember when installing things in Windows you are able to assign a name to the program. When you go into Add/remove programs it will come up in the list, however this name will not always directly relate to the name for the installaion program. This is the same in linux.

There should be a switch that allows you to assign any name to the package however I would suggest just leaving it the default.


rpm -ql j2sdk-1.4.2_04-fcs

will show you all the files associaged with j2sdk-1.4.2_04-fcs. Look for the java file and note down the path. It may be something like /usr/local/bin or /opt/java/bin etc.

edit your /etc/profile file add the following line to the bottom

export PATH=/usr/java/jdk1.3/bin:$PATH

where /usr/java/jdk1.3/bin is the location of the java program.

This will add the java program to your path so that java programs can find it easily.

logout then login again and you will have javasupport.
 
Old 07-26-2004, 01:17 AM   #5
ticky87
LQ Newbie
 
Registered: Jun 2004
Location: Cambridge, MA
Distribution: RHEL4
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for everything. I finally figured out what I installed and where it is. I guess it'll just take some getting used to.
 
  


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
rpm -ivh says installed rpm -e says not installed ??? skog Fedora 3 12-22-2004 03:52 PM
viewing rpm installed packages danikdj Fedora 2 11-22-2004 02:33 PM
How to tell rpm of "installed from source" packages hfreeman Linux - Software 2 07-28-2004 01:55 AM
Installed RPM packages reported missing (fedora 1, agnula) Taika-Kim Linux - Newbie 2 04-11-2004 04:44 PM
How do I get a current list of RPM packages installed on my system? needamiracle Linux - General 1 12-06-2002 05:38 PM

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

All times are GMT -5. The time now is 04:01 AM.

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