{"id":2016,"date":"2015-08-04T00:38:36","date_gmt":"2015-08-03T15:38:36","guid":{"rendered":"http:\/\/tech.akat.info\/?p=2016"},"modified":"2015-08-04T00:38:36","modified_gmt":"2015-08-03T15:38:36","slug":"apt%e9%96%a2%e9%80%a3%e4%be%bf%e5%88%a9%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=2016","title":{"rendered":"apt\u95a2\u9023\u4fbf\u5229\u30b3\u30de\u30f3\u30c9"},"content":{"rendered":"<h1>apt-cache policy<\/h1>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3084\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u512a\u5148\u5ea6(pin\u5024)\u3092\u8868\u793a\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# apt-cache policy\r\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb:\r\n 100 \/var\/lib\/dpkg\/status\r\n     release a=now\r\n 500 http:\/\/ftp.jp.debian.org\/debian\/ jessie-updates\/non-free Translation-en\r\n...\r\n\r\nroot@hostname:\/home\/shimizu# apt-cache policy nginx-extras\r\nnginx-extras:\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3: 1.6.2-5\r\n  \u5019\u88dc:               1.6.2-5\r\n  \u30d0\u30fc\u30b8\u30e7\u30f3\u30c6\u30fc\u30d6\u30eb:\r\n *** 1.6.2-5 0\r\n        500 http:\/\/ftp.jp.debian.org\/debian\/ jessie\/main amd64 Packages\r\n        100 \/var\/lib\/dpkg\/status\r\n<\/pre>\n<h1>apt-file<\/h1>\n<p>\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3069\u306eapt\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3092\u8abf\u3079\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# aptitude install apt-file\r\n\u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  apt-file libconfig-file-perl{a} liblist-moreutils-perl{a} libregexp-assemble-perl{a} \r\n...\r\nroot@hostname:\/home\/shimizu# apt-file update\r\n...\r\n\r\nroot@hostname:\/home\/shimizu# apt-file search ntpd.conf\r\nlogwatch: \/usr\/share\/logwatch\/default.conf\/services\/xntpd.conf\r\nopenntpd: \/etc\/openntpd\/ntpd.conf\r\nopenntpd: \/usr\/share\/man\/man5\/ntpd.conf.5.gz\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>apt-cache policy \u30ea\u30dd\u30b8\u30c8\u30ea\u3084\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u512a\u5148\u5ea6(pin\u5024)\u3092\u8868\u793a\u3059\u308b root@hostname:\/home\/shimizu# apt-cache policy \u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb: 100 \/var\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[68],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2016"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2016"}],"version-history":[{"count":1,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2016\/revisions"}],"predecessor-version":[{"id":2017,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2016\/revisions\/2017"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}