![]() Lrwxrwxrwx 1 root root 23 Sep 3 18:14 /etc/alternatives/mail -> /usr/bin/mail. means search only in the current directory, it is best to search everything from root if you really dont know. Lrwxrwxrwx 1 root root 22 Sep 3 18:14 /usr/bin/mail -> /etc/alternatives/mail sudo find / -type d -name 'postgis-2.0.0'. $ dpkg-query -S /etc/apache2/mods-available/Īpache2, libapache2-mod-php5, libapache2-mod-python, libapache2-mod-svn: /etc/apache2/mods-availableĭpkg-query can not follow symlink. To list packages which have something in apache mods-available folder $ dpkg-query -S /etc/apache2/nfįind packages using filename wildcard matchĪwstats: /usr/share/doc/awstats/html/awstats_config.htmlĪwstats: /usr/share/doc/awstats/examples/awstats_Īwstats: /usr/share/doc/awstats/examples/nfĪwstats: /usr/share/awstats/icon/mime/conf.pngįind packages having files in a directory Fine packages based filename full or partial match Here are some scenarios you can use dpkg-query (or dpkg) to find package name from file name. Note that it does not follow symlinks when querying. Ubuntu dpkg-query can be used to find package name given a file name, its full path or partial name. Ubuntu - reload iptables rules during boot. ![]() Ubuntu - how to find boot autostart status of a service.Ubuntu - how to auto start services on boot using update-rc.d (sysv init).Ubuntu - find where will a package be installed from. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |