Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to find the location of a package on my linux machine. There are several commands that i have tried like 'rpm -ql kernel-headers-2.6.32-71.18.1.el6.x86_64' but this is no good.
I also tried the following command 'rpm2cpio kernel-headers-2.6.32-71.18.1.el6.x86_64 | cpio --list! But I get a msg saying "kernel-headers-2.6.32-71.18.1.el6.x86_64: No such file or directory"
So I decided to download the rpm and when I tried to install it I get "package kernel-headers-2.6.32-71.18.1.el6.x86_64 is already installed"
Is there any way I can find out the location of this file??? It is not in any of the /usr folders (bin, lib, lib64, include etc...)
I am trying to find the location of a package on my linux machine. There are several commands that i have tried like 'rpm -ql kernel-headers-2.6.32-71.18.1.el6.x86_64' but this is no good.
What does "no good" mean? Any error message? What if you try simply...?
What I mean by "no good" is that it just brings back 100's of files with in the /usr subfolders. Here is an example of what i mean.
"/usr/include/linux/virtio_blk.h
/usr/include/linux/virtio_config.h
/usr/include/linux/virtio_console.h
/usr/include/linux/virtio_ids.h
/usr/include/linux/virtio_net.h
/usr/include/linux/virtio_pci.h
/usr/include/linux/virtio_ring.h
/usr/include/linux/virtio_rng.h"
That command you said to try also produced the same results, these don't tell me the location of the package I want
To find a file I would use 'find / . -name <fileName>'. Is there nothing like that for packages?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
A package has no location, when installed. The installed files have.
The package kernel-headers is "unusual" as it has files in /usr/include/ only.
Other packages can have files in many locations.
"Where is the information of the installed package stored" :
Is that your question ?
The answer is : The rpm data base, in a non readable binary format.
So the problem that I am having is that VMWare is looking for this package but I can' seem to be able to point it to where this package is. I have attached a screen shot of the msg I try to start up VMWare.
@Ashkan_s - It tells me that it found the new version and it is already installed so im still stuck
"package kernel-headers-2.6.32-71.18.1.el6.x86_64 (which is newer than kernel-headers-2.6.32-71.14.1.el6.x86_64) is already installed"
@knudfl - When I get that command it says "Package kernel-devel-2.6.32-71.18.1.el6.x86_64 already installed and latest version"
In th VM software when I browse to "/usr/src/kernels" it just throws an error.
I am trying to find the location of a package on my linux machine. There are several commands that i have tried like 'rpm -ql kernel-headers-2.6.32-71.18.1.el6.x86_64' but this is no good.
I also tried the following command 'rpm2cpio kernel-headers-2.6.32-71.18.1.el6.x86_64 | cpio --list! But I get a msg saying "kernel-headers-2.6.32-71.18.1.el6.x86_64: No such file or directory"
So I decided to download the rpm and when I tried to install it I get "package kernel-headers-2.6.32-71.18.1.el6.x86_64 is already installed"
Is there any way I can find out the location of this file??? It is not in any of the /usr folders (bin, lib, lib64, include etc...)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.