{"id":681,"date":"2019-02-04T16:51:45","date_gmt":"2019-02-04T13:51:45","guid":{"rendered":"https:\/\/artem.services\/?p=577"},"modified":"2019-02-20T00:12:23","modified_gmt":"2019-02-19T21:12:23","slug":"d0-bf-d0-be-d0-b8-d1-81-d0-ba-d0-bf-d1-80-d0-b8-d0-bb-d0-be-d0-b6-d0-b5-d0-bd-d0-b8-d1-8f-d0-b2-d1-81-d0-be-d1-81-d1-82-d0-b0-d0-b2-d0-b5-d0-bf-d0-b0-d0-ba-d0-b5-d1-82-d0-be-d0-b2","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=681&lang=en","title":{"rendered":"Linux &#8212; Find an application as part of packages"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-568 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/01\/BASH-Logo.png\" alt=\"\" width=\"376\" height=\"159\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/01\/BASH-Logo.png 376w, https:\/\/artem.services\/wp-content\/uploads\/2019\/01\/BASH-Logo-300x127.png 300w\" sizes=\"(max-width: 376px) 100vw, 376px\" \/><\/p>\n<p>For example, you need to know which package includes the utility &quot;<strong>mkpasswd<\/strong>&quot;<\/p>\n<h3>CentOS:<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum provides mkpasswd\r\n<\/pre>\n<p>Result:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n[root@artem.services ~]# yum provides mkpasswd\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: mirror.reconn.ru\r\n * epel: mirror.logol.ru\r\n * extras: dedic.sh\r\n * rpmforge: mirror.awanti.com\r\n * updates: mirror.reconn.ru\r\nexpect-5.45-14.el7_1.x86_64 : A program-script interaction and testing utility\r\nRepo        : base\r\nMatched from:\r\nFilename    : \/usr\/bin\/mkpasswd\r\n\r\n\r\n\r\nexpect-5.45-14.el7_1.x86_64 : A program-script interaction and testing utility\r\nRepo        : @base\r\nMatched from:\r\nFilename    : \/bin\/mkpasswd\r\n\r\n\r\n\r\nexpect-5.45-14.el7_1.x86_64 : A program-script interaction and testing utility\r\nRepo        : @base\r\nMatched from:\r\nFilename    : \/usr\/bin\/mkpasswd\r\n<\/pre>\n<h3><\/h3>\n<p><!--more--><\/p>\n<h3>Deb systems:<\/h3>\n<p>First you need to install the package &quot;<strong>apt-file<\/strong>&quot;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\napt install apt-file\r\napt update\r\n<\/pre>\n<p>We also search for the utility &quot;<strong>mkpasswd<\/strong>&quot;:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\napt-file search mkpasswd\r\n<\/pre>\n<p>Result:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n[rootm@artem.services ~]# apt-file search mkpasswd\r\ncharybdis: \/usr\/bin\/charybdis-mkpasswd\r\ncharybdis: \/usr\/lib\/charybdis\/modules\/extensions\/m_mkpasswd.so\r\nexpect: \/usr\/bin\/expect_mkpasswd\r\nexpect: \/usr\/share\/man\/man1\/expect_mkpasswd.1.gz\r\ngrub-common: \/usr\/bin\/grub-mkpasswd-pbkdf2\r\ngrub-common: \/usr\/share\/man\/man1\/grub-mkpasswd-pbkdf2.1.gz\r\nircd-irc2: \/usr\/sbin\/ircd-mkpasswd\r\nircd-irc2: \/usr\/share\/man\/man8\/ircd-mkpasswd.8.gz\r\nlibstring-mkpasswd-perl: \/usr\/bin\/mkpasswd.pl\r\nlibstring-mkpasswd-perl: \/usr\/share\/doc\/libstring-mkpasswd-perl\/changelog.Debian.gz\r\nlibstring-mkpasswd-perl: \/usr\/share\/doc\/libstring-mkpasswd-perl\/copyright\r\nlibstring-mkpasswd-perl: \/usr\/share\/lintian\/overrides\/libstring-mkpasswd-perl\r\nlibstring-mkpasswd-perl: \/usr\/share\/man\/man1\/mkpasswd.pl.1p.gz\r\nmanpages-zh: \/usr\/share\/man\/zh_CN\/man1\/mkpasswd.1.gz\r\nmanpages-zh: \/usr\/share\/man\/zh_TW\/man1\/mkpasswd.1.gz\r\nwhois: \/usr\/bin\/mkpasswd\r\nwhois: \/usr\/share\/man\/man1\/mkpasswd.1.gz\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>For example, you need to know which package includes the utility &quot;mkpasswd&quot; CentOS: Result:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[415],"tags":[417,419,421,423,425],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/681"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=681"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/681\/revisions"}],"predecessor-version":[{"id":683,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/681\/revisions\/683"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}