Click to See Complete Forum and Search --> : what package


crokett
04-05-2001, 10:25 PM
is the file curses.h in? if i need to install a given file, is there a way to find out what package it is in in redhat? i looked at the switches for rpm and it does not look like there is a way.

thanks

Tyr-7BE
04-05-2001, 10:37 PM
Do you have your C/C++ headers installed? ".h" is a header file used in C and C++.

crokett
04-05-2001, 11:02 PM
yup. already thought of that. the only headers package i can find is kernel-headers and that is installed, even with the --force option. i am trying to make menuconfig to make a new kernel, and it bombs because it can't find curses.h

thanks

pwrhouse
04-05-2001, 11:23 PM
When I am trying to figure out what package a file comes from I usually look at Debian's Package serch page (http://www.debian.org/distrib/packages)
It is not correct for every distro all of the time but it usually puts you on the right track.
curses.h == ncurses package

crokett
04-06-2001, 12:00 AM
Originally posted by pwrhouse:
When I am trying to figure out what package a file comes from I usually look at Debian's Package serch page (http://www.debian.org/distrib/packages)
It is not correct for every distro all of the time but it usually puts you on the right track.
curses.h == ncurses package

thanks, it turned out to be in the ncurses-development package
the make is working now.

bdg1983
04-06-2001, 06:08 AM
From the rpm man pages.

rpm -qf </path/to/filename>

That will tell you only if the package is already installed of course.

Otherwise I normally just use a web search engine for whatever file and I eventually find the package it belongs to.