ä½ã®è©±ãã¨ããã¨
Red Hat Networkã«ç»é²ããRHELã·ã¹ãã ã§ããã°ã
# yum update
ã¨ããã°ããã¹ã¦ã®ããã±ã¼ã¸ãèªåçã«ææ°ã«ã¢ãããã¼ãããã¾ãããããã¯ã
# yum install hogehoge
ã¨ããã°ãhogehogeã®ææ°ãã¼ã¸ã§ã³ã¨ä¾åããã±ã¼ã¸ãã¾ã¨ãã¦ã¤ã³ã¹ãã¼ã«ããã¾ãã
ããããªãããå ´åã«ãã£ã¦ã¯ãç¹å®ã®ããã±ã¼ã¸ã ãç¹å®ã®ãã¼ã¸ã§ã³ã«ä¸ããããã¨ãããããªãã¤ã³ã¹ãã¼ã«ããã®ã§ã¯ãªãã¦ãã¾ãã¯RPMãã¡ã¤ã«ããã¦ã³ãã¼ããã¦ãæ ¹æãèæã調ã¹ã¦ããã¤ã³ã¹ãã¼ã«ããããã¨ããå ´åãããã¾ãã
ãã®ãããªéã«ãyumã使ããã«ãRed Hatã®Customer Portalããåå¥ã«RPMããã¦ã³ãã¼ããã¦å¯¾å¿ãã¦ããæ¹ãå¤ãã¨æãã¾ãããå®ã¯ãyumã§ããã®ãããªããç´°ããªå¯¾å¿ã¯å¯è½ã§ããç¹ã«ãEC2/Nifty Cloudãªã©ã§æé課éã®RHELã使ãå ´åãå§ãããyumãªãã¸ããªã«ã¢ã¯ã»ã¹ã§ããããã«æ§æããã¦ããã®ã§ä¾¿å©ã§ãã
以ä¸ãEC2ã®RHELã§ã®æä½ä¾ã示ãã¾ãã
ãªãã¸ããªã®æ§æã®ç¢ºèª
EC2ä¸ã«RHELã®ãªãã¸ããªãç¨æããã¦ãã¾ãã
# yum repolist Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity rhui-ap-northeast-1-client-config-server-6 | 2.6 kB 00:00 rhui-ap-northeast-1-client-config-server-6/primary_db | 3.1 kB 00:00 rhui-ap-northeast-1-rhel-server-releases | 3.7 kB 00:00 rhui-ap-northeast-1-rhel-server-releases/primary_db | 18 MB 00:00 rhui-ap-northeast-1-rhel-server-releases-optional | 3.5 kB 00:00 rhui-ap-northeast-1-rhel-server-releases-optional/primar | 2.2 MB 00:00 repo id repo name status rhui-ap-northeast-1-client-config-server-6 Red Hat Update Infrastr 1 rhui-ap-northeast-1-rhel-server-releases Red Hat Enterprise Linu 8,896 rhui-ap-northeast-1-rhel-server-releases-optional Red Hat Enterprise Linu 5,477 repolist: 14,374
å©ç¨å¯è½ãªå ¨ã¦ã®ãã¼ã¸ã§ã³ã確èª
ãªãã¸ããªã«ã¯ãææ°ãã¼ã¸ã§ã³ã ãã§ã¯ãªããå¤ããã¼ã¸ã§ã³ãã¡ããã¨å ¥ã£ã¦ãã¾ããã--showduplicateããªãã·ã§ã³ã§ç¢ºèªã§ãã¾ãã
# yum --showduplicate list httpd Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Available Packages httpd.x86_64 2.2.15-5.el6 rhui-ap-northeast-1-rhel-server-releases httpd.x86_64 2.2.15-9.el6 rhui-ap-northeast-1-rhel-server-releases httpd.x86_64 2.2.15-9.el6_1.2 rhui-ap-northeast-1-rhel-server-releases httpd.x86_64 2.2.15-9.el6_1.3 rhui-ap-northeast-1-rhel-server-releases httpd.x86_64 2.2.15-15.el6 rhui-ap-northeast-1-rhel-server-releases httpd.x86_64 2.2.15-15.el6_2.1 rhui-ap-northeast-1-rhel-server-releases
ç¹å®ãã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«
ãã¼ã¸ã§ã³æå®ã§ã¤ã³ã¹ãã¼ã«ãå¯è½ã§ãã
# yum install httpd-2.2.15-9.el6_1.3 Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-9.el6_1.3 will be installed --> Processing Dependency: httpd-tools = 2.2.15-9.el6_1.3 for package: httpd-2.2.15-9.el6_1.3.x86_64 --> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-9.el6_1.3.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-9.el6_1.3.x86_64 --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-9.el6_1.3.x86_64 --> Running transaction check ---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed ---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package httpd-tools.x86_64 0:2.2.15-9.el6_1.3 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: httpd x86_64 2.2.15-9.el6_1.3 rhui-ap-northeast-1-rhel-server-releases 808 k Installing for dependencies: apr x86_64 1.3.9-5.el6_2 rhui-ap-northeast-1-rhel-server-releases 123 k apr-util x86_64 1.3.9-3.el6_0.1 rhui-ap-northeast-1-rhel-server-releases 87 k apr-util-ldap x86_64 1.3.9-3.el6_0.1 rhui-ap-northeast-1-rhel-server-releases 15 k httpd-tools x86_64 2.2.15-9.el6_1.3 rhui-ap-northeast-1-rhel-server-releases 69 k Transaction Summary ================================================================================ Install 5 Package(s) Total download size: 1.1 M Installed size: 3.5 M Is this ok [y/N]:
ãã¼ã¸ã§ã³æå®ã®ã¢ãããã¼ããå¯è½ã§ãã
# yum update httpd-2.2.15-15.el6 Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-9.el6_1.3 will be updated ---> Package httpd.x86_64 0:2.2.15-15.el6 will be an update --> Processing Dependency: httpd-tools = 2.2.15-15.el6 for package: httpd-2.2.15-15.el6.x86_64 --> Running transaction check ---> Package httpd-tools.x86_64 0:2.2.15-9.el6_1.3 will be updated ---> Package httpd-tools.x86_64 0:2.2.15-15.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: httpd x86_64 2.2.15-15.el6 rhui-ap-northeast-1-rhel-server-releases 808 k Updating for dependencies: httpd-tools x86_64 2.2.15-15.el6 rhui-ap-northeast-1-rhel-server-releases 70 k Transaction Summary ================================================================================ Upgrade 2 Package(s) Total download size: 878 k Is this ok [y/N]:
ãã¼ã¸ã§ã³æå®ã®ãã¦ã³ã°ã¬ã¼ããå¯è½ã§ãã
# yum downgrade httpd-2.2.15-5.el6 Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Setting up Downgrade Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-5.el6 will be a downgrade --> Processing Dependency: httpd-tools = 2.2.15-5.el6 for package: httpd-2.2.15-5.el6.x86_64 ---> Package httpd.x86_64 0:2.2.15-15.el6 will be erased --> Finished Dependency Resolution Error: Package: httpd-2.2.15-5.el6.x86_64 (rhui-ap-northeast-1-rhel-server-releases) Requires: httpd-tools = 2.2.15-5.el6 Installed: httpd-tools-2.2.15-15.el6.x86_64 (@rhui-ap-northeast-1-rhel-server-releases) httpd-tools = 2.2.15-15.el6 Available: httpd-tools-2.2.15-5.el6.x86_64 (rhui-ap-northeast-1-rhel-server-releases) httpd-tools = 2.2.15-5.el6 Available: httpd-tools-2.2.15-9.el6.x86_64 (rhui-ap-northeast-1-rhel-server-releases) httpd-tools = 2.2.15-9.el6 Available: httpd-tools-2.2.15-9.el6_1.2.x86_64 (rhui-ap-northeast-1-rhel-server-releases) httpd-tools = 2.2.15-9.el6_1.2 Available: httpd-tools-2.2.15-9.el6_1.3.x86_64 (rhui-ap-northeast-1-rhel-server-releases) httpd-tools = 2.2.15-9.el6_1.3 Available: httpd-tools-2.2.15-15.el6_2.1.x86_64 (rhui-ap-northeast-1-rhel-server-releases) httpd-tools = 2.2.15-15.el6_2.1 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
ãã£ã¨ããããã®å ´åã¯ãä¾åããã±ã¼ã¸ãåæã«ãã¦ã³ã°ã¬ã¼ãããå¿ è¦ãããããã§ãã
# yum downgrade httpd-2.2.15-5.el6 httpd-tools-2.2.15-5.el6 Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Setting up Downgrade Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-5.el6 will be a downgrade ---> Package httpd.x86_64 0:2.2.15-15.el6 will be erased ---> Package httpd-tools.x86_64 0:2.2.15-5.el6 will be a downgrade ---> Package httpd-tools.x86_64 0:2.2.15-15.el6 will be erased --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================ Package Arch Version Repository Size ================================================================================================================ Downgrading: httpd x86_64 2.2.15-5.el6 rhui-ap-northeast-1-rhel-server-releases 811 k httpd-tools x86_64 2.2.15-5.el6 rhui-ap-northeast-1-rhel-server-releases 68 k Transaction Summary ================================================================================================================ Downgrade 2 Package(s) Total download size: 879 k Is this ok [y/N]:
ç¹å®ãã¼ã¸ã§ã³ã®RPMããã¦ã³ãã¼ã
yumdownloaderã§RPMããã¦ã³ãã¼ããããã¨ãã§ãã¾ãã--resolveãªãã·ã§ã³ãæå®ããã¨ãã¤ã³ã¹ãã¼ã«æã«ä¾åãã¦ã¤ã³ã¹ãã¼ã«ãããRPMãä½µãã¦ãã¦ã³ãã¼ããã¾ãã
# yumdownloader --resolve httpd-2.2.15-9.el6_1.3 Loaded plugins: amazon-id, product-id, rhui-lb --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-9.el6_1.3 will be installed --> Processing Dependency: httpd-tools = 2.2.15-9.el6_1.3 for package: httpd-2.2.15-9.el6_1.3.x86_64 --> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-9.el6_1.3.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-9.el6_1.3.x86_64 --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-9.el6_1.3.x86_64 --> Running transaction check ---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed ---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package httpd-tools.x86_64 0:2.2.15-9.el6_1.3 will be installed --> Finished Dependency Resolution httpd-2.2.15-9.el6_1.3.x86_64.rpm | 808 kB 00:00 httpd-tools-2.2.15-9.el6_1.3.x86_64.rpm | 69 kB 00:00 apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm | 15 kB 00:00 apr-util-1.3.9-3.el6_0.1.x86_64.rpm | 87 kB 00:00 apr-1.3.9-5.el6_2.x86_64.rpm | 123 kB 00:00 # ls apr-1.3.9-5.el6_2.x86_64.rpm apr-util-1.3.9-3.el6_0.1.x86_64.rpm apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm httpd-2.2.15-9.el6_1.3.x86_64.rpm httpd-tools-2.2.15-9.el6_1.3.x86_64.rpm
ã¾ã¨ãã¦å ¨é¨ãã¦ã³ãã¼ã
reposyncã³ãã³ãã使ãã¨ããªãã¸ããªãã¾ããã¨ãã¦ã³ãã¼ããããã¨ãå¯è½ã§ãã詳細ã¯manãã¼ã¸ã§ç¢ºèªãã ããã