{"id":4227,"date":"2016-06-24T00:02:11","date_gmt":"2016-06-23T15:02:11","guid":{"rendered":"http:\/\/www.magtranetwork.com\/?p=4227"},"modified":"2017-02-09T13:11:55","modified_gmt":"2017-02-09T04:11:55","slug":"centos_mozilla_firefox_install_update","status":"publish","type":"post","link":"https:\/\/www.magtranetwork.com\/programming\/centos_mozilla_firefox_install_update.html","title":{"rendered":"CentOS6\u3001CentOS7\u306a\u3069\u306eLinux\u74b0\u5883\u3067Mozilla Firefox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0) \uff5e\u81ea\u5206\u306e\u597d\u304d\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3067\u304d\u308b\u30dd\u30fc\u30bf\u30d6\u30eb\u7248\uff5e"},"content":{"rendered":"

Mozilla Firefox\u306f2002\u5e749\u670823\u65e5\u306e\u30d0\u30fc\u30b8\u30e7\u30f30.1\u304b\u3089\u9577\u5e74\u306b\u308f\u305f\u3063\u3066\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30d6\u30e9\u30a6\u30b6\u3068\u3057\u3066\u611b\u7528\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n

\u7279\u306b\u8fd1\u5e74\u3067\u306f\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306b\u3082\u5bfe\u5fdc\u3057\u3001\u30b5\u30dd\u30fc\u30c8\u3059\u308bOS\u306fWindows\u3001macOS\u3001Linux\u3001Android\u3001iOS\u306a\u3069\u30c7\u30b9\u30af\u30c8\u30c3\u30d7OS\u304b\u3089\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u307e\u3067\u5e45\u5e83\u304f\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u307e\u305f\u3001\u958b\u767a\u521d\u671f\u304b\u3089\u30d6\u30e9\u30a6\u30b6\u306b\u30a2\u30c9\u30aa\u30f3\u3092\u5c0e\u5165\u3067\u304d\u308b\u4ed5\u7d44\u307f\u3092\u53d6\u308a\u5165\u308c\u305f\u308a\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248\u306e\u30d7\u30ed\u30ad\u30b7\u8a2d\u5b9a\u304cOS\u306e\u30b7\u30b9\u30c6\u30e0\u8a2d\u5b9a\u3068\u72ec\u7acb\u3057\u3066\u3044\u308b\u3001\u30d6\u30c3\u30af\u30de\u30fc\u30af\u30e1\u30cb\u30e5\u30fc\u304c\u4eca\u3067\u3082\u5de6\u5074\u306b\u56fa\u5b9a\u3067\u304d\u308b\u306a\u3069\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u4fbf\u5229\u306a\u6a5f\u80fd\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u3055\u3089\u306b\u6700\u8fd1\u30b7\u30a7\u30a2\u3092\u6025\u62e1\u5927\u3057\u3066\u3044\u308b\u4eba\u6c17\u306e\u30d6\u30e9\u30a6\u30b6Google Chrome\u3068\u6bd4\u8f03\u3057\u3066\u3001Android\u7248\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30b5\u30dd\u30fc\u30c8\u671f\u9593\u304c\u9577\u3044\u306a\u3069\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067\u540c\u3058\u6a5f\u7a2e\u3092\u9577\u304f\u4f7f\u7528\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u306b\u3082\u91cd\u5b9d\u3055\u308c\u308b\u30d6\u30e9\u30a6\u30b6\u3067\u3059\u3002<\/p>\n

\u4eca\u56de\u306fLinux\u3067\u3082\u30d7\u30ea\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3082\u591a\u3044Mozilla Firefox\u3092RPM\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u81ea\u5206\u306e\u597d\u304d\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u7c21\u5358\u306b\u5909\u66f4\u3067\u304d\u308b\u30dd\u30fc\u30bf\u30d6\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n

CentOS6\u3001CentOS7\u306a\u3069\u306eLinux\u74b0\u5883\u3067Mozilla Firefox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0) \uff5e\u81ea\u5206\u306e\u597d\u304d\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5909\u3048\u3089\u308c\u308b\u30dd\u30fc\u30bf\u30d6\u30eb\u7248\uff5e<\/h2>\n

CentOS6\u3001CentOS7\u306a\u3069\u306eLinux\u74b0\u5883\u3067Mozilla Firefox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)<\/h3>\n

\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5185\u5bb9\u306fMozilla Firefox\u306e\u914d\u5e03\u30b5\u30a4\u30c8\u304b\u3089\u81ea\u5206\u3067\u597d\u304d\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u306eLinux\u7248Firefox\u3092\u63a2\u3057\u3001\u5f15\u6570\u306b\u305d\u306eURL\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u81ea\u52d5\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n

\u540c\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u524d\u56de\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u306eFirefox\u30e2\u30b8\u30e5\u30fc\u30eb\u306f1\u4e16\u4ee3\u307e\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u624b\u52d5\u3067\u5f8c\u304b\u3089\u623b\u3059\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n

\u307e\u305f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u672c\u4f53\u3082\u5bfe\u8c61\u30d0\u30fc\u30b8\u30e7\u30f3\u306eFirefox\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u4fdd\u5b58\u3059\u308b\u305f\u3081\u3001\u5f8c\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5185\u5bb9\u3092\u691c\u8a3c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n

\r\nvim firefox_install.sh\r\n<\/pre>\n
\r\n\r\n#!\/bin\/bash\r\n\r\n#\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5f15\u6570\u306b\u3059\u308bFirefox\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5143URL\u306f\u4e0b\u8a18\u304b\u3089\u63a2\u3059\u3002\r\n#https:\/\/download-installer.cdn.mozilla.net\/pub\/firefox\/releases\/\r\n\r\n#(\u4f8b)Mozilla Firefox 45.2 ESR\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u4e0b\u8a18\u306eURL\u3092\u5f15\u6570\u306b\u6307\u5b9a\u3059\u308b\u3002\r\n#https:\/\/download-installer.cdn.mozilla.net\/pub\/firefox\/releases\/45.2.0esr\/linux-x86_64\/ja\/firefox-45.2.0esr.tar.bz2\r\n\r\n#\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u6642\u306b\u5f15\u6570\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3002\r\nif [ $# -ne 1 ]; then\r\n  echo "\u6307\u5b9a\u3055\u308c\u305f\u5f15\u6570\u306f$#\u500b\u3067\u3059\u3002" 1>&2\r\n  echo "\u5b9f\u884c\u3059\u308b\u306b\u306f1\u500b\u306e\u5f15\u6570\u304c\u5fc5\u8981\u3067\u3059\u3002" 1>&2\r\n  exit 1\r\nfi\r\n\r\n#\u5f15\u6570\u3092URL\u306b\u6307\u5b9a\u3002\r\nURL=${1}\r\n\r\n#URL\u304b\u3089Firefox\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u540d\u3092\u62bd\u51fa\u3059\u308b\u3002\r\nARR=( `echo $URL | tr -s '\/' ' '`)\r\nCNT=`expr ${#ARR[@]} - 1`\r\nFILE_NAME=${ARR[${CNT}]}\r\n\r\n#\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u306a\u308bFirefox\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u540d\u3092\u8868\u793a\u3059\u308b\u3002\r\necho "Target File Name"\r\necho ${FILE_NAME}\r\n\r\n#\u53e4\u3044(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u524d\u306e)Firefox\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u3002\r\necho "OLD Firefox Version"\r\n\/usr\/bin\/firefox -V\r\n\r\n#\/opt\u914d\u4e0b\u306bURL\u304b\u3089Firefox\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002\r\ncd \/opt\r\ncurl -O ${URL}\r\n\r\n#\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u306eFirefox\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\/opt\/firefox_old\u3092\u524a\u9664\u3059\u308b\u3002\r\nrm -rf \/opt\/firefox_old\r\n\r\n#\u73fe\u5728\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306eFirefox\u3092\/opt\/firefox_old\u306b\u79fb\u52d5\u3059\u308b\u3002\r\nmv \/opt\/firefox \/opt\/firefox_old\r\n\r\n#\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fFirefox\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u89e3\u51cd\u3059\u308b\u3002\r\ntar xvf ${FILE_NAME}\r\n\r\n#\u65b0\u3057\u3044(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e)Firefox\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u3002\r\necho "NEW Firefox Version"\r\n\/opt\/firefox\/firefox -V\r\n\r\n#Firefox\u306e\u73fe\u5728\u306e\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u79fb\u52d5\u3057\u3066\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u3002\r\nmv \/usr\/bin\/firefox \/opt\/firefox\/firefox.old\r\n\r\n#\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306eFirefox\u306e\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\/usr\/bin\u306b\u914d\u7f6e\u3059\u308b\u3002\r\nln -s \/opt\/firefox\/firefox \/usr\/bin\/firefox\r\n\r\n#\u73fe\u5728\u306e(\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u5165\u308c\u66ff\u3048\u5f8c\u306e)Firefox\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u3002\r\necho "CURRENT Firefox Version"\r\n\/usr\/bin\/firefox -V\r\n\r\n#\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u4f7f\u7528\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u540c\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u89e3\u51cd\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u7ba1\u3059\u308b\r\ncd \/opt\r\nmv ${FILE_NAME} \/opt\/firefox\/\r\n\r\n\r\n<\/pre>\n

\u5b9f\u884c\u4f8b<\/h3>\n
\r\nchmod 755 firefox_install.sh\r\n.\/firefox_install.sh https:\/\/download-installer.cdn.mozilla.net\/pub\/firefox\/releases\/45.2.0esr\/linux-x86_64\/ja\/firefox-45.2.0esr.tar.bz2\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

Mozilla Firefox\u306f2002\u5e749\u670823\u65e5\u306e\u30d0\u30fc\u30b8\u30e7\u30f30.1\u304b\u3089\u9577\u5e74\u306b\u308f\u305f\u3063\u3066\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30d6\u30e9\u30a6\u30b6\u3068\u3057\u3066\u611b\u7528\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002 \u7279\u306b\u8fd1\u5e74\u3067\u306f\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306b\u3082\u5bfe\u5fdc\u3057\u3001\u30b5\u30dd\u30fc\u30c8\u3059\u308bOS\u306fWindows\u3001 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[79,82],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/4227"}],"collection":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/comments?post=4227"}],"version-history":[{"count":2,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/4227\/revisions"}],"predecessor-version":[{"id":5252,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/4227\/revisions\/5252"}],"wp:attachment":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/media?parent=4227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/categories?post=4227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/tags?post=4227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}