8/14/2023 0 Comments Ubuntu search file$ apt-file search /usr/include/cairo/cairo.h This only lists the package that contains this file: you want to find out to which package the file /usr/include/cairo/cairo.h belongs to, run:Īpt-file search /usr/include/cairo/cairo.h Libcairo2-dev: /usr/include/cairo/cairo.h Libcairo-ocaml-dev: /usr/share/doc/libcairo-ocaml-dev/html/type_Pango_cairo.html Libcairo-ocaml-dev: /usr/share/doc/libcairo-ocaml-dev/html/Pango_cairo.html Ipe: /usr/share/ipe/7.2.7/doc/group_cairo.html Guitarix-doc: /usr/share/doc/guitarix-doc/namespacegx_cairo.html Guile-cairo-dev: /usr/include/guile-cairo/guile-cairo.h Gstreamer1.0-plugins-good-doc: /usr/share/gtk-doc/html/gst-plugins-good-plugins-1.0/gst-plugins-good-plugins-plugin-cairo.html Glabels-dev: /usr/share/gtk-doc/html/libglbarcode-3.0/ Glabels-dev: /usr/include/libglbarcode-3.0/libglbarcode/lgl-barcode-render-to-cairo.h Ggobi: /usr/include/ggobi/ggobi-renderer-cairo.h If you know the exact file path and filename, you can get the search results to only list the package that includes that exact file, like this:įor example, running only apt-file search cairo.h will list a large list search results:įltk1.3-doc: /usr/share/doc/fltk1.3-doc/HTML/group_group_cairo.html This command will list all occurrences of filename found in various packages. Replacing filename with the name of the file you want to find. Now you can use apt-file to find the DEB package that provides a file, be it a package you've installed from the repositories, or a package available in the repositories, but not installed on your Debian / Ubuntu / Linux Mint system. This tool find the files belonging to a package by using a database, which needs to be updated in order to be able to use it. To install it in Debian, Ubuntu, Linux Mint and other Debian-based or Ubuntu-based Linux distributions, use this command: The package needs to be available in the repositories for apt-file to be able to find it.Īpt-file may not be installed on your system. This is useful in case you want to find what package contains a file that you need to compile some program, etc.Īpt-file cannot find the package that provides a file in case you downloaded a DEB package and installed it, without using a repository. That means you can use apt-file to search for files inside DEB packages that are installed on your system, as well as packages that are not installed on your Debian (and Debian-based Linux distributions, like Ubuntu) machine, but are available to install from the repositories. Using apt-file to find the package that provides a file (for repository packages, either installed or not installed)Īpt-file indexes the contents of all packages available in your repositories, and allows you to search for files in all these packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |