CentOS 5/6 ç³»ã§ã€/etc/yum.repos.d/ ã® yum リãƒã‚¸ãƒˆãƒªã®è¨å®šã‚’ã¿ã¦ã¿ã‚‹ã¨ã€$releasever ã‚„ $basearch ã¨ã„ã†å¤‰æ•°åãŒä½¿ã‚ã‚Œã¦ã„ã¦ã€ãƒªãƒªãƒ¼ã‚¹ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã«ã‚ã†ã‚ˆã†ã«ãªã£ã¦ã„ã¦ä¾¿åˆ©ã§ã™ã‚ˆã。ã§ã™ãŒã€$releasever ã¯ã€CentOS 6.3 ãªã‚‰ 6 ã¨ã—ã‹å…¥ã‚‰ãªã„ã®ã§ã€å¤šå°‘ä¸ä¾¿ã§ã™ã€‚毎回ã€ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚¢ãƒƒãƒ—ã™ã‚‹ã“ã¨ã« /etc/yum.repos.d/ ã®è¨å®šã‚’固定値ã§æ›¸ãæ›ãˆã¦ã‚‚当然ã„ã„ã®ã§ã™ãŒã€ã‚ã‚“ã©ãã•ã„ã¨ã„ã†ã“ã¨ã§ã€Yum ã®å¤‰æ•°ã‚’カスタマイズã™ã‚‹æ–¹æ³•ã‚’調ã¹ã¦ã¿ã¾ã—ãŸã€‚ ã¾ãšã€å®šç¾©ã•ã‚Œã¦ã„ã‚‹ Yum ã®å¤‰æ•°ã‚’ãƒã‚§ãƒƒã‚¯ã™ã‚‹ã«ã¯ã€æ¬¡ã®ãƒ¯ãƒ³ãƒ©ã‚¤ãƒŠãƒ¼ã§ç¢ºèªã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ $ sudo python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yu
{{#tags}}- {{label}}
{{/tags}}