{"id":3537,"date":"2020-04-24T16:08:24","date_gmt":"2020-04-24T07:08:24","guid":{"rendered":"https:\/\/www.sambuichi.jp\/?p=3537"},"modified":"2020-04-24T16:08:35","modified_gmt":"2020-04-24T07:08:35","slug":"inotifywait","status":"publish","type":"post","link":"https:\/\/www.sambuichi.jp\/?p=3537","title":{"rendered":"inotifywait"},"content":{"rendered":"<p>Views: 77<\/p>\n<pre class=\"lang:default decode:true \" >$ sudo yum install inotify-tools\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:priorities, update-motd, upgrade-helper<\/pre>\n<pre class=\"lang:default decode:true \" >\r\n One of the configured repositories failed (\u4e0d\u660e),\r\n and yum doesn't have enough cached data to continue. At this point the only\r\n safe thing yum can do is fail. There are a few ways to work \"fix\" this:\r\n\r\n     1. Contact the upstream for the repository and get them to fix the problem.\r\n\r\n     2. Reconfigure the baseurl\/etc. for the repository, to point to a working\r\n        upstream. This is most often useful if you are using a newer\r\n        distribution release than is supported by the repository (and the\r\n        packages for the previous distribution release still work).\r\n\r\n     3. Disable the repository, so yum won't use it by default. Yum will then\r\n        just ignore the repository until you permanently enable it again or use\r\n        --enablerepo for temporary usage:\r\n\r\n            yum-config-manager --disable <repoid>\r\n\r\n     4. Configure the failing repository to be skipped, if it is unavailable.\r\n        Note that yum will try to contact the repo. when it runs most commands,\r\n        so will have to try and fail each time (and thus. yum will be be much\r\n        slower). If it is a very temporary problem though, this is often a nice\r\n        compromise:\r\n\r\n            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true\r\n\r\nCannot retrieve metalink for repository: epel\/x86_64. Please verify its path and try again\r\n<\/pre>\n<pre class=\"lang:default decode:true \" >$ sudo -s\r\n# yum clean all --enablerepo=*; yum update --disablerepo=epel\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:priorities, update-motd, upgrade-helper\r\n\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc\u3092\u6e05\u6383\u3057\u3066\u3044\u307e\u3059: amzn-main amzn-main-debuginfo amzn-main-source\r\n     ...: amzn-nosrc amzn-preview amzn-preview-debuginfo amzn-preview-source\r\n     ...: amzn-updates amzn-updates-debuginfo amzn-updates-source epel\r\n     ...: epel-debuginfo epel-source epel-testing epel-testing-debuginfo\r\n     ...: epel-testing-source\r\nCleaning up everything\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:priorities, update-motd, upgrade-helper\r\namzn-main                                                | 2.1 kB     00:00     \r\namzn-updates                                             | 2.5 kB     00:00     \r\n(1\/5): amzn-main\/latest\/group_gz                           | 4.4 kB   00:00     \r\n(2\/5): amzn-updates\/latest\/group_gz                        | 4.4 kB   00:00     \r\n(3\/5): amzn-updates\/latest\/primary_db                      | 3.0 MB   00:00     \r\n(4\/5): amzn-main\/latest\/primary_db                         | 4.0 MB   00:00     \r\n(5\/5): amzn-updates\/latest\/updateinfo                      | 641 kB   00:00     \r\nNo packages marked for update\r\n# exit\r\nexit<\/pre>\n<pre class=\"lang:default decode:true \" >$ sudo yum install inotify-tools\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:priorities, update-motd, upgrade-helper\r\nepel\/x86_64\/metalink                                     | 9.4 kB     00:00     \r\nepel                                                     | 4.7 kB     00:00     \r\n(1\/3): epel\/x86_64\/group_gz                                |  74 kB   00:00     \r\n(2\/3): epel\/x86_64\/primary_db                              | 6.1 MB   00:00     \r\n(3\/3): epel\/x86_64\/updateinfo                              | 789 kB   00:00     \r\n1073 packages excluded due to repository priority protections\r\n\u4f9d\u5b58\u6027\u306e\u89e3\u6c7a\u3092\u3057\u3066\u3044\u307e\u3059\r\n--> \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\r\n---> \u30d1\u30c3\u30b1\u30fc\u30b8 inotify-tools.x86_64 0:3.14-2.el6 \u3092 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n--> \u4f9d\u5b58\u6027\u89e3\u6c7a\u3092\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\r\n\r\n\u4f9d\u5b58\u6027\u3092\u89e3\u6c7a\u3057\u307e\u3057\u305f\r\n\r\n================================================================================\r\n Package                \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc\r\n                                        \u30d0\u30fc\u30b8\u30e7\u30f3          \u30ea\u30dd\u30b8\u30c8\u30ea\u30fc   \u5bb9\u91cf\r\n================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d:\r\n inotify-tools          x86_64          3.14-2.el6          epel           46 k\r\n\r\n\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u8981\u7d04\r\n================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb  1 \u30d1\u30c3\u30b1\u30fc\u30b8\r\n\r\n\u7dcf\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5bb9\u91cf: 46 k\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5bb9\u91cf: 104 k\r\nIs this ok [y\/d\/N]: y\r\nDownloading packages:\r\n\u8b66\u544a: \/var\/cache\/yum\/x86_64\/latest\/epel\/packages\/inotify-tools-3.14-2.el6.x86_64.rpm: \u30d8\u30c3\u30c0\u30fc V3 RSA\/SHA256 Signature\u3001\u9375 ID 0608b895: NOKEY\r\ninotify-tools-3.14-2.el6.x86_64.rpm \u306e\u516c\u958b\u9375\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\r\ninotify-tools-3.14-2.el6.x86_64.rpm                        |  46 kB   00:00     \r\nfile:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6 \u304b\u3089\u9375\u3092\u53d6\u5f97\u4e2d\u3067\u3059\u3002\r\nImporting GPG key 0x0608B895:\r\n Userid     : \"EPEL (6) <epel@fedoraproject.org>\"\r\n Fingerprint: 8c3b e96a f230 9184 da5c 0dae 3b49 df2a 0608 b895\r\n Package    : epel-release-6-8.9.amzn1.noarch (installed)\r\n From       : \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6\r\n\u4e0a\u8a18\u306e\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002\u3088\u308d\u3057\u3044\u3067\u3057\u3087\u3046\u304b\uff1f [y\/N]y\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d          : inotify-tools-3.14-2.el6.x86_64                 1\/1 \r\n  \u691c\u8a3c\u4e2d                  : inotify-tools-3.14-2.el6.x86_64                 1\/1 \r\n\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb:\r\n  inotify-tools.x86_64 0:3.14-2.el6                                             \r\n\r\n\u5b8c\u4e86\u3057\u307e\u3057\u305f!<\/pre>\n<pre class=\"lang:default decode:true \" >$ inotifywait -e modify .| awk '\/MODIFY\/ {print $3}'\r\nSetting up watches.\r\nWatches established.\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Views: 77 $ sudo yum install inotify-tools \u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:priorities, update-motd, upgrade-helper One of the confi [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/3537"}],"collection":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3537"}],"version-history":[{"count":1,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/3537\/revisions"}],"predecessor-version":[{"id":3538,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/3537\/revisions\/3538"}],"wp:attachment":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}