Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ RPM

Posted by: mavcat18 Jul 30 2006, 04:42 PM

hey guys im new to this forum and linux for that matter so pardon me if this topic has been brought up before. I am trying to install a program on a Linux Red Hat 4 computer connected to an IBM (306 i believe) server. Its a relatively short install, i copy the config.txt file to the computer from CD, modify it, then try to run an install.sh file, but when i do it tells me that the .rpm files have not been installed(the .rpm files appear in red when i do the -ls command). i have gone into the GUI to install the files(just less room for error) and went one by one to install them and they all give me a message saying they have been installed however the install.sh file still gives me the same error? any help would be appreciated!

Posted by: dishawjp Aug 8 2006, 11:16 AM

Mavcat18,

The way to tell if a .rpm file has been installed is to give the command:

rpm -q <filename>

For <filename> substitute the short name of the .rpm file. For example, to see if the .rpm file

opera-9.01-20060728.6-shared-qt.i386-en.rpm

has been installed, give the command "rpm -q opera"

In this case it should return:

CODE
dishawjp@linux:~/download/rpms> rpm -q opera
opera-9.01-20060728.6
dishawjp@linux:~/download/rpms>


To install .rpms from the command line, "cd" to the directory that they are located in and type the command (as root):

rpm -Uvh *.rpm

and they will be installed. It's possible that your install shell script has a problem and the .rpms may already be installed. You could try calling the installed programs from the command line to see if they run.

HTH

Jim

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)