{"id":188,"date":"2014-08-19T01:21:52","date_gmt":"2014-08-18T16:21:52","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=188"},"modified":"2024-10-26T04:53:26","modified_gmt":"2024-10-25T19:53:26","slug":"blog27","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog27\/","title":{"rendered":"(27) <span class=\"my_fc_deeppinkB\">dnf<\/span>, <span class=\"my_fc_deeppinkB\">yum<\/span>, <span class=\"my_fc_deeppinkB\">rpm<\/span>, <span class=\"my_fc_deeppinkB\">apt<\/span>\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9"},"content":{"rendered":"<p><span class=\"my_fs_big3\">RHEL(RedHat Enterprize Linux)<\/span>, <span class=\"my_fs_big3\">CentOS<\/span> \u3067 <span class=\"my_fs_big3 my_fc_deeppink\">yum<\/span> , <span class=\"my_fs_big3 my_fc_deeppink\">rpm<\/span> \u3092\u4f7f\u3044\u305f\u3044\u3068\u304d\u306b\u30b3\u30d4\u30da\u3067\u304d\u308b\u4f7f\u7528\u4f8b\u3092\u8a18\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>yum\u3068rpm\u306e\u95a2\u4fc2\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067\u308f\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3063\u3066\u3044\u308b\u3002<br \/>\n<a href=\"http:\/\/blog.inouetakuya.info\/entry\/20111006\/1317900802\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/blog.inouetakuya.info\/entry\/20111006\/1317900802<\/a><\/p>\n<h1 class=\"my_h\">1. dnf \u30b3\u30de\u30f3\u30c9<\/h1>\n<p><span class=\"my_fc_crimsonB\">\u672c\u7a3f\u306f2022\/07\/09\u306b\u8ffd\u8a18<\/span><\/p>\n<p>\u4e0a\u8a18\u306e\u8ffd\u8a18\u65e5\u6642\u70b9\u3067\u306f\u3001RHEL8, RHEL9\u4e0a\u306e dnf\u3068 yum\u306f\u3001\u540c\u3058\u30d7\u30ed\u30b0\u30e9\u30e0 dnf-3 \u306b\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n\u3064\u307e\u308a\u3001dnf, yum\u306e\u3069\u3061\u3089\u3092\u5165\u529b\u3057\u3066\u3082\u3001\u540c\u3058\u30d7\u30ed\u30b0\u30e9\u30e0 dnf-3 \u304c\u8d77\u52d5\u3059\u308b\u3002<br \/>\n\u3000\u2192 <span class=\"my_fc_deeppinkBBig\">dnf\u3068 yum\u306f\u3001\u307e\u3063\u305f\u304f\u540c\u3058\u52d5\u4f5c\u3092\u3059\u308b\u3002<\/span><\/p>\n<pre class=\"my_pre\">\r\n# which yum dnf\r\n\/usr\/bin\/yum\r\n\/usr\/bin\/dnf\r\n\r\n# ll \/usr\/bin\/yum \/usr\/bin\/dnf\r\nlrwxrwxrwx. 1 root root 5  3\u6708 21 19:08 <span class=\"my_fc_blueB\">\/usr\/bin\/dnf<\/span> -> <span class=\"my_fc_greenB\">dnf-3<\/span>\r\nlrwxrwxrwx. 1 root root 5  3\u6708 21 19:08 <span class=\"my_fc_blueB\">\/usr\/bin\/yum<\/span> -> <span class=\"my_fc_greenB\">dnf-3<\/span>\r\n<\/pre>\n<p>\u5fc3\u914d\u306a\u65b9\u306f RedHat\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u8aac\u660e\u3092\u53c2\u7167\u3055\u308c\u305f\u3044\u3002<br \/>\n<a href=\"https:\/\/access.redhat.com\/documentation\/ja-jp\/red_hat_enterprise_linux\/9\/html-single\/considerations_in_adopting_rhel_9\/index\" target=\"_blank\" rel=\"noopener\">RHEL 9 \u306e\u63a1\u7528\u306b\u304a\u3051\u308b\u8003\u616e\u4e8b\u9805<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2014\/08\/Image2.jpg\" alt=\"\" class=\"my_add_bs1\" \/><\/a><\/p>\n<h1 class=\"my_h\">2. yum \u30b3\u30de\u30f3\u30c9<\/h1>\n<h3 class=\"my_h\">\u25a0 \u767b\u9332\u6e08\u307f\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4e00\u89a7\u8868\u793a<\/h3>\n<pre>\r\nyum repolist all\r\n<\/pre>\n<h3 class=\"my_h\">\u25a0 \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u767b\u9332<\/h3>\n<pre>\r\nREPO=xxxxx\r\nyum install $REPO\r\n<\/pre>\n<p>\u4f7f\u7528\u53ef\u80fd\u306a\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067\u7d39\u4ecb\u3057\u3066\u304f\u3060\u3055\u3063\u3066\u3044\u308b\u3002<br \/>\n<a href=\"https:\/\/qiita.com\/bezeklik\/items\/9766003c19f9664602fe\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/qiita.com\/bezeklik\/items\/9766003c19f9664602fe<\/a><\/p>\n<h3 class=\"my_h\">\u25a0 \u6307\u5b9a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre>\r\nPKG=xxxxx\r\nyum install $PKG\r\n<\/pre>\n<p><span class=\"my_fw_bold my_fc_deeppink\">y<\/span> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3068 \u300c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u304b\uff1f\u300d \u306e\u78ba\u8a8d\u5165\u529b\u3092\u30b9\u30ad\u30c3\u30d7\u3067\u304d\u308b\u3002<\/p>\n<pre>\r\nPKG=xxxxx\r\nyum <span class=\"my_fw_bold my_fc_deeppink\">-y<\/span> install $PKG\r\n<\/pre>\n<p><span class=\"my_fw_bold my_fc_deeppink\">enablerepo<\/span> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3068\u4e00\u6642\u7684\u306b\u672a\u767b\u9332\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u53d6\u5f97\u3067\u304d\u308b\u3002<\/p>\n<pre>\r\nREPO=zzzzz\r\nPKG=xxxxx\r\nyum install <span class=\"my_fw_bold my_fc_deeppink\">--enablerepo<\/span> $REPO $PKG\r\n<\/pre>\n<h3 class=\"my_h\">\u25a0 \u6307\u5b9a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u691c\u7d22<\/h3>\n<pre>\r\nPKG=xxxxx\r\nyum search $PKG\r\n<\/pre>\n<h3 class=\"my_h\">\u25a0 \u6307\u5b9a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u60c5\u5831\u3092\u8868\u793a<\/h3>\n<pre>\r\nPKG=xxxxx\r\nyum info $PKG\r\n<\/pre>\n<h3 class=\"my_h\">\u25a0 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h3>\n<pre>\r\nyum update\r\n<\/pre>\n<p class=\"my_fc_red\">\u203b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u9045\u3044\u5834\u5408<br \/>\n[Ctrl]+\u3092\u62bc\u4e0b\u3059\u308b\u3068\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5143\u3092\u30b9\u30a4\u30c3\u30c1\u3057\u3066\u901f\u304f\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u3002<\/p>\n<h3 class=\"my_h\">\u25a0 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u89a7\u8868\u793a<\/h3>\n<pre>\r\nyum list installed\r\n<\/pre>\n<h3 class=\"my_h\">\u25a0 \u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u53ef\u80fd\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u89a7\u8868\u793a<\/h3>\n<pre>\r\nyum check-update\r\n<\/pre>\n<h1 class=\"my_h\">3. rpm \u30b3\u30de\u30f3\u30c9<\/h1>\n<p>yum \u30b3\u30de\u30f3\u30c9\u3067\u306f\u767b\u9332\u6e08\u307f\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u6307\u5b9a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff06\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002<br \/>\n\u3057\u304b\u3057\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u6b32\u3057\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3053\u308c\u304c\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u3001\u3069\u3053\u304b\u304b\u3089\u6b32\u3057\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5165\u624b\u3057 rpm \u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u81ea\u4f5c\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u3063\u3066\u4ed6\u4eba\u69d8\u306b\u63d0\u4f9b\u3059\u308b\u3068\u304d\u306b\u3082\u3001\u3053\u306e\u65b9\u6cd5\u304c\u4f7f\u3048\u308b\u3002<\/p>\n<h3 class=\"my_h\">\u25a0 \u6307\u5b9a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre>\r\nPCG=xxxxx\r\nrpm <span class=\"my_fc_deeppink\">-ivh<\/span> $PCG\r\n<\/pre>\n<p>\u4f7f\u7528\u4f8b\u3067\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u6307\u5b9a\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<br \/>\n<span class=\"my_fc_deeppink\">i<\/span> : \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n<span class=\"my_fc_deeppink\">v<\/span> : \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u691c\u67fb\u3059\u308b\u3002<br \/>\n<span class=\"my_fc_deeppink\">h<\/span> : \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u3092\u8868\u793a\u3059\u308b\u3002<\/p>\n<h3 class=\"my_h\">\u25a0 \u6307\u5b9a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h3>\n<pre>\r\nPCG=xxxxx\r\nrpm <span class=\"my_fc_deeppink\">-Uvh<\/span> $PCG\r\n<\/pre>\n<p>\u4f7f\u7528\u4f8b\u3067\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u6307\u5b9a\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<br \/>\n<span class=\"my_fc_deeppink\">U<\/span> : \u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u3002<\/p>\n<h3 class=\"my_h\">\u25a0 \u6307\u5b9a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u60c5\u5831\u3092\u8868\u793a<\/h3>\n<pre>\r\nPKG=xxxxx\r\nrpm -q $PKG\r\n<\/pre>\n<h3 class=\"my_h\">\u25a0 \u6307\u5b9a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre>\r\nPCG=xxxxx\r\nrpm -e $PCG\r\n<\/pre>\n<h3 class=\"my_h\">\u25a0 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4e00\u89a7\u8868\u793a<\/h3>\n<pre>\r\nrpm -qa\r\n<\/pre>\n<h1 class=\"my_h\">4. apt \u30b3\u30de\u30f3\u30c9<\/h1>\n<h3 class=\"my_h\">\u25a0 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8868\u793a<\/h3>\n<pre>\r\napt list --installed\r\n<\/pre>\n<p>\u7279\u5b9a\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u3092\u77e5\u308a\u305f\u3044\u5834\u5408 (\u4f8b. \u5bfe\u8c61\u304c ssh\u306e\u5834\u5408)<\/p>\n<pre>\r\napt list --installed | grep ssh\r\n<\/pre>\n<h3 class=\"my_h\">\u25a0 \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u60c5\u5831\u3092\u8868\u793a<\/h3>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u3084\u4f9d\u5b58\u95a2\u4fc2\u3092\u77e5\u308a\u305f\u3044\u3068\u304d\u306b\u4f7f\u3048\u308b\u3002(\u4f8b. \u5bfe\u8c61\u304c ssh\u306e\u5834\u5408)<\/p>\n<pre>\r\napt show ssh\r\n<\/pre>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>RHEL(RedHat Enterprize Linux), CentOS \u3067 yum , rpm \u3092\u4f7f\u3044\u305f\u3044\u3068\u304d\u306b\u30b3\u30d4\u30da\u3067\u304d\u308b\u4f7f\u7528\u4f8b\u3092\u8a18\u3057\u3066\u304a\u304f\u3002 yum\u3068rpm\u306e\u95a2\u4fc2\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067\u308f\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog27\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[152,50,49],"tags":[],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-apt","category-rpm","category-yum"],"views":3051,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/comments?post=188"}],"version-history":[{"count":84,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":3776,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/188\/revisions\/3776"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}