2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cloud-initでyumリポジトリを追加する

Last updated at Posted at 2015-04-08

EPELを使いたいなら
/etc/cloud/cloud.cfg

packages:
  - tmux

yum_repos:
  epel:
    baseurl: http://download.fedoraproject.org/pub/epel/6/$basearch
    mirrorlist: https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
    enabled: true
    failovermethod: priority
    gpgcheck: true
    gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    name: Extra Packages for Enterprise Linux 6 - $basearch

RPM-GPG-KEY-EPEL-6はあらかじめ置いておく必要がある。
https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6

初回起動時のみ発動すると思われるので、rebootしてもリポジトリが増えていない場合はVMを作り直す必要がある。

2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?