LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to tell if a rpm is installed (https://www.linuxquestions.org/questions/linux-software-2/how-to-tell-if-a-rpm-is-installed-76512/)

SnowSurfAir 07-28-2003 12:44 AM

How to tell if a rpm is installed
 
I have installed kernel-source-2.4.20-18.9.i386.rpm so that I can install the Nvidia IA32 driver. How can I tell if it installed correctly? and is that the right rpm for the driver to view the kernel source and kernel headers?cuz that is my kernel version

jgombos 07-28-2003 12:52 AM

I would execute the following commands:
Code:

rpm -qi kernel-source
rpm -ql kernel-source


SnowSurfAir 07-28-2003 12:58 AM

It just said somethin about how rpms were powerful and then gave me a list of files but before and after it it said package kernel-source not installed. I have run the rpm now wut do i do?

jgombos 07-28-2003 01:06 AM

That's interesting. The -ql switch was commanding it to list all the files that were installed for that package. I don't know why it would list files, then say that the thing is not installed. That's strange. Sorry I can't be any more help.

jackyopensrc 07-28-2003 01:27 AM

Re: Hoe to tell if a rpm is installed.
 
Hi jgombos!

Do you mind to tell me where your *.rpm file located in.

If your file located in /apps directory,go to that directory

/apps

Type "rpm -i <packagesname.rpm> | less" -is to install the specified packages.

:)

balaji2001com 07-28-2003 01:34 AM

try the
rpm -qa <rpm>|grep <the rpm you have installed>
this gives u whether the rpm is installed or not.
Otherwise try this
try to force the rpm once more using the
rpm -ivh <the rpm to be intalled> --force
this forces the rpm once more
if this doesn't work then there's a problem with the setup somewhere

Get back to me if this works :Pengy:

SnowSurfAir 07-28-2003 02:07 PM

Thanks it wasnt installed and that --force thing worked. Thanks again

jackyopensrc 07-29-2003 12:53 AM

How to tell if a rpm is installed?
 
Okay, What about the error message "packages depencies" appears?

I have encountered these problems many times .

aizkorri 07-29-2003 01:15 AM

that means you have to install some other package(s) before you install the one you want to, cause it needs something else to be installed before.

e.g you want to install some app that uses graphical interface, it will check if the gui's packages are installed, if they are not it will say there is a dependency and you have to install this or that package(s)

balaji2001com 07-29-2003 01:49 AM

the force option is generally used to force an rpm to be installed.this can be also used when we cannot uninstall an rpm,we force install it and remove it after it is installed the second time.the dependencies has nothing to do with the force option.the --nodeps deals with the dependencies.

Pls correct me if iam wrong.

jackyopensrc 07-30-2003 02:01 AM

Good Day Aizkorri,

Previously, I have ever installed that menationed related packages on my linux box, but it just denied my installation. It gave me that errors messages such as: glibc3_2 interdepencies by .... ba ba ba

My Scenario is I need the Qt lib to program my works,so I have the following simple quesion:

a) Do I have to download all the other related packages ?
b) What packages shall I download with ?
c) How can I find the remove the previous packages and install the needed packages ?
d)Will it conflit with other current packages ?

Thanks ! Have a nice Day !

mhearn 07-30-2003 05:11 AM

If you get a glibc error you need to recompile the program or find an RPM for the exact version of your distro.


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