{"id":305,"date":"2020-07-17T18:55:17","date_gmt":"2020-07-17T17:55:17","guid":{"rendered":"https:\/\/blog.thomarite.uk\/?p=305"},"modified":"2020-07-17T18:55:17","modified_gmt":"2020-07-17T17:55:17","slug":"debian-apt-file","status":"publish","type":"post","link":"https:\/\/blog.thomarite.uk\/index.php\/2020\/07\/17\/debian-apt-file\/","title":{"rendered":"Debian &#8211; apt-file"},"content":{"rendered":"\n<p>In the past, I have had to use Centos systems a lot at work and there was something I really liked from rpm, it is &#8220;yum provides&#8221; that tells you which package you need to install based on the command you need.<\/p>\n\n\n\n<p>I always struggle to do that in Debian. I hope I remember it for the next time. Based on this <a href=\"https:\/\/www.cyberciti.biz\/faq\/equivalent-of-rpm-qf-command\/\">link<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># aptitude install apt-file\n\n# apt-file update\n\n# <em>apt-file search snmpwalk<\/em>\nlibnet-snmp-perl: \/usr\/share\/doc\/libnet-snmp-perl\/examples\/snmpwalk.pl\nlibsnmp-session-perl: \/usr\/share\/doc\/libsnmp-session-perl\/examples\/snmpwalkh.pl\npython3-pysnmp4-apps: \/usr\/bin\/pysnmpwalk\npython3-pysnmp4-apps: \/usr\/share\/man\/man1\/pysnmpwalk.1.gz\n<em><strong>snmp: \/usr\/bin\/snmpwalk  &lt;=== THIS IS WHAT I WANT !!!!<\/strong><\/em>\nsnmp: \/usr\/share\/man\/man1\/snmpwalk.1.gz\nsnmpsim: \/usr\/share\/doc\/snmpsim\/examples\/data\/foreignformats\/linux.snmpwalk.gz\nsnmpsim: \/usr\/share\/doc\/snmpsim\/examples\/data\/foreignformats\/winxp1.snmpwalk.gz\n\n# aptitude install snmp<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the past, I have had to use Centos systems a lot at work and there was something I really liked from rpm, it is &#8220;yum provides&#8221; that tells you which package you need to install based on the command you need. I always struggle to do that in Debian. I hope I remember it &hellip; <a href=\"https:\/\/blog.thomarite.uk\/index.php\/2020\/07\/17\/debian-apt-file\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Debian &#8211; apt-file&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-unix"],"_links":{"self":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/comments?post=305"}],"version-history":[{"count":1,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":306,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/305\/revisions\/306"}],"wp:attachment":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/media?parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/categories?post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/tags?post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}