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.
dpkg -L libncurses5-dev | while read file; do if [[ -f $file ]]; then echo ${file}; fi; done
(Description: Get the provided files, and for each one, only print it if it is a file.)
More information
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.)
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.
1. apt-file
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
For example,
dpkg -S curses.h
gives me this output: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
For example
dpkg -L libncurses5-dev
gives me the following outputThis 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.)
More information
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.)