MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
So I'm trying to install Nvidia's latest Nforce drivers on Linux Mandriva LE2005 x86_64. I get an error message stating that it cannot find the path to the kernel source. So I take a look in /usr/src. There is no linux directory, just one called RPM. When I navigate into this RPM directory and attempt to run the kernel-source rpm, I get the message that it is already installed. But if it's not in /usr/src, then where is it?
You may have slocate and slocate.updatedb (or slocate -u) - you can always search for such tools in the directories /usr/bin and /usr/sbin (and very rarely can they be in /sbin).
You can always try, e.g. "man slocate" to see if they're installed on your system. Usually if the tools aren't there, the manpage won't be. Your distro may also have a way of searching for files in your installed packages. In the jargon, you want to know what "owns" the file. Most distros also allow searching for files that aren't installed; that will tell you what package you need.
locate is basically making "find" faster. Ordinarily, you could get the same results by doing a
find / | grep file_you_want
but that looks at every file in its physical location every time you run it (well, depending on what filesystem you use, but that's a technical point). locate or slocate, instead, search a database that you can create with updatedb. This means you do a full "find /" only when you create the database - all subsequent searches are much, much faster - usually instantaneous.
Well you can use rpm to look for the files of an installed package, just type "rpm -qa|grep kernel", look at the name of the kernel-sources package(let call it foo) and then type "rpm -ql foo" and it will display all the files of tha package,and of course its path. Locate, find and all that commands are valid too of course!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.