Use apt-file to find the missing package-general Linux technology-Linux technology and application information. For more information, see the following. Apt-file is an APT package search tool on the command line interface. When we compile the source code, there is a lack of files. In this case, you can use apt-file to find the package where the missing file is located, and then install the missing package to make the compilation smooth.
Install apt-file
In Ubuntu, run the following command to install apt-file:
Sudo apt-get install apt-file
Update package content
Before using apt-file to search for a package, you must update the package content. You can use the following command:
Sudo apt-file update
This process will last for a while. If sources. list is modified later, you still need to perform this operation.
Find the missing package
Run the following command:
Apt-file search file name
For example, apt-file search gtk. h.
Based on the displayed search results, you can determine which packages are required.
List files in a package
Run the following command:
Apt-file list package name
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service