6. Find out which Package a File belongs to You can search for a file and find out which package it belongs to using command: dpkg -S /path/to/file For example, to search packages that the/bin/unamefile belongs to, use the following command: dpkg -S /bin/uname Sample Output: coreut...
6. Find out which Package a File belongs to You can search for a file and find out which package it belongs to using command: dpkg -S /path/to/file For example, to search packages that the/bin/unamefile belongs to, use the following command: dpkg -S /bin/uname Sample Output: coreut...
To find a package containing a file, use the-Soption: dpkg -S <pattern>Copy For example, search forapt-get: dpkg -S apt-getCopy The output showsapt-getbelongs to theaptpackage. Note:Learn about the difference betweenapt vs. apt-get. Alternatively, search for a specific file. For examp...