I need a few header file namely curses.h for text based programming Please tell me how to install these header files.
You can install libncurses5-dev package via Software Center or:
Also, you can install the package by clicking here.
When you need a file or package and can't find it you can use some tools.
First, install apt-file and update it.
You can search with apt-file needed files or packages.
2. Use packages.ubuntu.com
Go to this link.
On right top, select package contents if your are searching a file included with a package. If you need a package directly, just search it with its name choosing package names.
Find package from file
Edit: This only works for an installed package, so is not able to answer the question. Better is heartmagic's answer
To find out what package a file is part of, you can use
Find files in package
Edit: You need to have the package installed for this to work.
To get the list of files provided by a package, use
This includes directories as well.
Find ONLY files (not directories) in package
To get just the files the package contains:
(Description: Get the provided files, and for each one, only print it if it is a file.)
You might find this table useful. Just look at the first column (action) and third column (deb) to get a good overview of what you can do. (unless you are curious of course, then look at the other columns.)