{"id":210,"date":"2025-05-12T22:54:24","date_gmt":"2025-05-12T13:54:24","guid":{"rendered":"https:\/\/www.359soft.jp\/?p=210"},"modified":"2025-05-12T22:54:24","modified_gmt":"2025-05-12T13:54:24","slug":"ubuntu-22-04%e3%81%aepc-a%e3%81%a7%e3%83%93%e3%83%ab%e3%83%89%e3%81%97%e3%81%9f-apache-2-4-63-%e3%81%ae%e3%83%91%e3%83%83%e3%82%b1%e3%83%bc%e3%82%b8-%e3%82%92pc-b%e3%81%ab%e3%83%91%e3%83%83%e3%82%b1","status":"publish","type":"post","link":"https:\/\/www.359soft.jp\/?p=210","title":{"rendered":"Ubuntu 22.04\u306ePC A\u3067\u30d3\u30eb\u30c9\u3057\u305f Apache 2.4.63 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8 \u3092PC B\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>Ubuntu 22 \u306e PC A \u3067\u30d3\u30eb\u30c9\u3057\u305f <strong>Apache 2.4.63 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8<\/strong> \u3092 <strong>PC B \u306b\u30b3\u30d4\u30fc\u3057\u3066 <\/strong><code>apt<\/code><strong> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/strong> \u3059\u308b\u306b\u306f\u3001<strong>Debian \u30d1\u30c3\u30b1\u30fc\u30b8 (<\/strong><code>.deb<\/code><strong> \u30d5\u30a1\u30a4\u30eb) \u3092\u4f5c\u6210<\/strong> \u3057\u3001\u305d\u308c\u3092 PC B \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>\u624b\u9806<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>1\ufe0f\u20e3 PC A \u3067 Apache 2.4.63 \u306e <\/strong><code>.deb<\/code><strong> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210<\/strong><\/h4>\n\n\n\n<p>\u307e\u305a\u3001<code>checkinstall<\/code> \u3092\u4f7f\u3063\u3066 <strong>Apache 2.4.63 \u306e <\/strong><code>.deb<\/code><strong> \u30d1\u30c3\u30b1\u30fc\u30b8<\/strong> \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install checkinstall\ncd \/usr\/local\/src\/httpd-2.4.63\nsudo checkinstall --pkgname=apache2 --pkgversion=2.4.63 --backup=no --fstrans=no --default\n<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067 <code>apache2_2.4.63-1_amd64.deb<\/code> \u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>2\ufe0f\u20e3 PC A \u304b\u3089 PC B \u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30b3\u30d4\u30fc<\/strong><\/h4>\n\n\n\n<p>PC B \u306b <code>.deb<\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>scp apache2_2.4.63-1_amd64.deb user@pc-b:\/tmp\/\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>3\ufe0f\u20e3 PC B \u3067 <\/strong><code>apt<\/code><strong> \u3092\u4f7f\u3063\u3066 Apache \u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/strong><\/h4>\n\n\n\n<p>PC B \u306b\u79fb\u52d5\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 <strong>Apache 2.4.52 \u304b\u3089 2.4.63 \u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/strong> \u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\/\nsudo dpkg -i apache2_2.4.63-1_amd64.deb\nsudo apt-mark hold apache2\nsudo systemctl restart apache2\n<\/code><\/pre>\n\n\n\n<p><code>apt-mark hold apache2<\/code> \u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001<code>apt upgrade<\/code> \u306e\u969b\u306b <strong>\u81ea\u52d5\u7684\u306b 2.4.52 \u306b\u623b\u308b\u3053\u3068\u3092\u9632\u3050<\/strong> \u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\ude80 <strong>\u307e\u3068\u3081<\/strong><\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>PC A \u3067 <\/strong><code>checkinstall<\/code><strong> \u3092\u4f7f\u3063\u3066 <\/strong><code>.deb<\/code><strong> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210<\/strong><\/li>\n\n\n\n<li><strong>PC B \u306b <\/strong><code>.deb<\/code><strong> \u3092\u30b3\u30d4\u30fc<\/strong><\/li>\n\n\n\n<li><strong>PC B \u3067 <\/strong><code>dpkg -i<\/code><strong> \u3092\u4f7f\u3044\u3001<\/strong><code>apt<\/code><strong> \u7d4c\u7531\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/strong><\/li>\n\n\n\n<li><code>apt-mark hold<\/code><strong> \u3067 Apache \u3092\u56fa\u5b9a<\/strong><\/li>\n<\/ol>\n\n\n\n<p>\u3053\u306e\u65b9\u6cd5\u3067 <strong>APT \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u305f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/strong> \u304c\u3067\u304d\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 22 \u306e PC A \u3067\u30d3\u30eb\u30c9\u3057\u305f Apache 2.4.63 \u306e\u30d1\u30c3\u30b1\u30fc\u30b8 \u3092 PC B \u306b\u30b3\u30d4\u30fc\u3057\u3066 apt \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8 \u3059\u308b\u306b\u306f\u3001Debian \u30d1\u30c3\u30b1\u30fc\u30b8 (.deb \u30d5\u30a1\u30a4\u30eb) \u3092\u4f5c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-server"],"_links":{"self":[{"href":"https:\/\/www.359soft.jp\/index.php?rest_route=\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.359soft.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.359soft.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.359soft.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.359soft.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210"}],"version-history":[{"count":1,"href":"https:\/\/www.359soft.jp\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":211,"href":"https:\/\/www.359soft.jp\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions\/211"}],"wp:attachment":[{"href":"https:\/\/www.359soft.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.359soft.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.359soft.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}