使用apt-file 命令可以通过lib文件名查找其所属的系统package,在配置软件的dependence时十分好用: 使用apt-file之前首先需要进行安装: sudo apt-get install apt-file 安装成功后必须要进行一次跟新操作: sudo apt-file update 查找库文件所属的package: sudo apt-file search libz.so.1 ===...
search Search in which package a file is included. A list of all packages containing the pattern pattern is returned. Since Contents files does not contain directories, the pattern must match (part of a) file name. By default, the search action interprets its pattern as if --substring-...
使用apt-file 命令可以通过lib文件名查找其所属的系统package,在配置软件的dependence时十分好用: 使用apt-file之前首先需要进行安装: sudo apt-get install apt-file 1. 安装成功后必须要进行一次跟新操作: sudo apt-file update 1. 查找库文件所属的package: sudo apt-file search libz.so.1 1. ===...
Today, let’s learn to use the apt command to search for a package in Ubuntu. Linux relies on packages to deliver or install applications on a system. These packages are essentially compressed file archives. These archives are used when the user wishes to install a new application or service...
-w width Specify the display width for formatting search results. -f Aggressively try to fix broken packages. -V Show which versions of packages are to be installed. -D Show the dependencies of automatically changed packages. -Z Show the change in installed size of each package. ...
sudo apt search lsof --names-only Theapt searchcommand prints results if run withoutsudoas well, as long as the user has access to the packages in question. Get Package Info with apt show To display details about the package like the dependencies, content description, download and installation...
apt-file search <filename_search_pattern> This command acts like dlocate and dpkg -S, but searches all available packages. It answers the question, "what package provides this file?". apt-file needs to be updated regularly like apt-get. Use the command: apt-file update In order to use...
I recently had to find out which APT package provided a specific command on one of my Ubuntu systems. After a bit of digging, I discovered that thedpkgcommand’s magical-Sswitch gives us a simple way to do this. Per the dpkg-query man page, the-Sswitch (also valid as--search) does...
Search for the package name that appears in the error. Note that, in our case the culprit package was ‘urd’ which was in ‘purge reinstreq half-installed’ state. After you have located the culprit package, delete the section of information related to that package and save the file. In...
在下文中一共展示了AptIntf::searchPackageFiles方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。 示例1: pk_backend_search_files_thread ▲点赞 9▼ staticvoidpk_backend_search_files_thread(PkBackendJob *job, GVaria...