AmazonLinux2でepelリポジトリを使えるようにする手順 | 瀬戸内の雲のように

AmazonLinux2でepelリポジトリを使えるようにする手順

Posted: 2019-02-14


スポンサーリンク

目次

はじめに

最近(でもないか?)AWSにAmazonLinux2が追加されましたが、ところどころ以前のAmazonLinuxと勝手が違って戸惑います。
今回はepelリポジトリを追加する時にちょっと困ったので手順をメモしています。

事象の概要

普通にyum installすると epelなんて無いよ と怒られます。

たしか今までのamazon linuxだと普通に yum install epel-release でリポジトリがインストールできたはずなのですが、、

amazon linux 2 だと、以下のように失敗します。

yum install epel-release

結果

Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
No package epel-release available.
Error: Nothing to do


epel-release is available in Amazon Linux Extra topic "epel"

To use, run
# sudo amazon-linux-extras install epel

Learn more at
https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras

 

ということで、成功する手順

まぁ上のエラーメッセージに書いてあるのですが。自分は見逃して小一時間迷いました。。

amazon linux 2 からは amazon-linux-extras というコマンドが使えるようです。

su -
amazon-linux-extras install epel

結果

Installing epel-release
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-epel
10 metadata files removed
4 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                                                                       | 2.4 kB  00:00:00
amzn2extra-docker                                                                                                                | 1.3 kB  00:00:00
amzn2extra-epel                                                                                                                  | 1.3 kB  00:00:00
(1/5): amzn2-core/2/x86_64/updateinfo                                                                                            |  84 kB  00:00:00
(2/5): amzn2-core/2/x86_64/group_gz                                                                                              | 2.4 kB  00:00:00
(3/5): amzn2extra-docker/2/x86_64/primary_db                                                                                     |  46 kB  00:00:00
(4/5): amzn2extra-epel/2/x86_64/primary_db                                                                                       | 1.8 kB  00:00:00
(5/5): amzn2-core/2/x86_64/primary_db                                                                                            |  26 MB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================
 Package                                Arch                             Version                        Repository                                 Size
========================================================================================================================================================
Installing:
 epel-release                           noarch                           7-11                           amzn2extra-epel                            15 k

Transaction Summary
========================================================================================================================================================
Install  1 Package

Total download size: 15 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-11.noarch.rpm                                                                                                     |  15 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                                                                                             1/1
  Verifying  : epel-release-7-11.noarch                                                                                                             1/1

Installed:
  epel-release.noarch 0:7-11

Complete!
  0  ansible2                 available    [ =2.4.2  =2.4.6 ]
  2  httpd_modules            available    [ =1.0 ]
  3  memcached1.5             available    [ =1.5.1 ]
  4  nginx1.12                available    [ =1.12.2 ]
  5  postgresql9.6            available    [ =9.6.6  =9.6.8 ]
  6  postgresql10             available    [ =10 ]
  8  redis4.0                 available    [ =4.0.5  =4.0.10 ]
  9  R3.4                     available    [ =3.4.3 ]
 10  rust1                    available    \
        [ =1.22.1  =1.26.0  =1.26.1  =1.27.2  =1.31.0 ]
 11  vim                      available    [ =8.0 ]
 13  ruby2.4                  available    [ =2.4.2  =2.4.4 ]
 15  php7.2                   available    \
        [ =7.2.0  =7.2.4  =7.2.5  =7.2.8  =7.2.11  =7.2.13  =7.2.14 ]
 16  php7.1                   available    [ =7.1.22  =7.1.25 ]
 17  lamp-mariadb10.2-php7.2  available    \
        [ =10.2.10_7.2.0  =10.2.10_7.2.4  =10.2.10_7.2.5
          =10.2.10_7.2.8  =10.2.10_7.2.11  =10.2.10_7.2.13
          =10.2.10_7.2.14 ]
 18  libreoffice              available    [ =5.0.6.2_15  =5.3.6.1 ]
 19  gimp                     available    [ =2.8.22 ]
 20  docker=latest            enabled      \
        [ =17.12.1  =18.03.1  =18.06.1 ]
 21  mate-desktop1.x          available    [ =1.19.0  =1.20.0 ]
 22  GraphicsMagick1.3        available    [ =1.3.29 ]
 23  tomcat8.5                available    [ =8.5.31  =8.5.32 ]
 24  epel=latest              enabled      [ =7.11 ]
 25  testing                  available    [ =1.0 ]
 26  ecs                      available    [ =stable ]
 27  corretto8                available    [ =1.8.0_192  =1.8.0_202 ]
 28  firecracker              available    [ =0.11 ]
 29  golang1.11               available    [ =1.11.3 ]
 30  squid4                   available    [ =4 ]

どうやらインストールできたようです。

実際に確認してみると

# ls -ltr /etc/yum.repos.d/epel*
-rw-r--r-- 1 root root 1050 Aug 29 19:16 /etc/yum.repos.d/epel-testing.repo
-rw-r--r-- 1 root root  951 Aug 29 19:16 /etc/yum.repos.d/epel.repo

ちゃんとリポジトリができていました。

以上、amazon linux 2 でepelを使う手順でした。


スポンサーリンク




コメント一覧

2022/05/21 03:41:07

Anbnvunnyさん

how long does sildenafil last in the body is sildenafil 20 mg the same as viagra? https://sildenafilkiol.com/


2022/04/08 02:46:37

Keezexictさん

savar tadalafil tadalafil professional review


2022/04/09 02:43:40

Ntfbfplugsさん

cialis price tadalafil reviews


2022/04/09 02:55:34

Crnnwongeさん

viagra samples viagra coupons soft tabs viagra viagra cost


2022/04/09 21:25:29

Dbngplugsさん

sildenafil costco price does generic sildenafil work


2022/04/10 17:54:46

Fnenvunnyさん

buy generic viagra order viagra online


2022/04/11 22:48:58

Kbwnexictさん

how to purchase viagra online otc viagra usa


2022/04/12 23:01:57

Cmmnwongeさん

tadalafil 5mg generic from us tadalafil 25 mg


2022/04/12 23:31:33

Nmioplugsさん

perscription drugs in canada online classes for pharmacy technician


2022/04/13 15:55:36

Knrnexictさん

viagra online us pharmacy Zofran


2022/04/14 01:42:53

AnuoAudircurnさん

Zudena canadian pharmacies requiring prescriptions


2022/04/14 14:33:39

Ckanwongeさん

levitra dose levitra 60 mg


2022/04/14 15:12:08

Nbttplugsさん

generic vs brand name for cialis cialis price australia


2022/04/15 09:00:13

Dsnnplugsさん

giant grocery store pharmacy price chopper pharmacy


2022/04/16 04:18:42

Fuupvunnyさん

generic female viagra nbme 16 sildenafil


2022/04/16 17:13:02

Enrnexictさん

generic cialis 200mg cialis cheap online


2022/04/17 03:21:30

AnnoAudircurnさん

cost of viagra generic cheap viagra 100mg


2022/04/17 16:03:52

Wevgwongeさん

Zithromax marks pharmacy canada


2022/04/17 18:41:10

Zbttplugsさん

ivermectin for heartworm prevention is ivermectin safe for dogs


2022/04/18 13:48:47

Jtnnplugsさん

can i take ivermectin every day ivermectin 12 mg tablets buy


2022/04/19 04:58:06

Auupvunnyさん

tadalafil package insert cialis tadalafil 20mg price


2022/04/20 01:31:35

Ennsexictさん

viagra for female price viagra in mexico cost


2022/04/20 10:48:07

AnuuAudircurnさん

compare canadian pharmacy prices canada drugs .com


2022/04/20 22:57:16

Wnsnwongeさん

want to buy levitra levitra active ingredients


2022/04/21 02:06:50

nyyyplugsさん

40 mg levitra too much levitra reviews bad side effects


2022/04/21 21:03:24

Jnnyplugsさん

cialis (generic) cialisi


2022/04/22 12:21:08

Ahhpvunnyさん

generic cialis, no prescription, paypal walmart cialis pharmacy


2022/04/23 05:56:42

Eaaqexictさん

does medicare cover prescription drugs mailing prescription drugs usps


2022/04/23 15:16:03

JyhAudircurnさん

do canadian pharmacies require prescriptions reviews of canadian online pharmacies


2022/04/24 03:31:43

Wnnhwongeさん

is canada pharmacy online legit reliable pharmacy rx


2022/04/24 06:26:18

Ntcxplugsさん

care rx pharmacy tallahassee fl discount drug store pharmacy


2022/04/25 01:11:52

Jmmplugsさん

pharmacy store window can i bring prescription drugs in my carry on


2022/04/25 16:41:33

Ansnvunnyさん

online pharmacy with doctor consultation right source pharmacy


2022/04/29 17:46:52

Ebbexictさん

canadian pharmacy zolpidem get prescription online https://dtupharmyjn.com/


2022/04/30 02:48:50

JyhgAudircurnさん

does ivermectin kill roundworms stromectol.4 mg pill https://stromectolujlo.com/


2022/04/30 14:45:37

Wnbhwongeさん

levitra 20mg price levitra coupon 3 free pills https://glevitrargu.com/


2022/04/30 17:38:46

Nndnplugsさん

pharmacy technician degrees online hydrocodone online pharmacy https://jzpharmacyukj.com/


2022/05/01 11:55:34

Jebplugsさん

viagra soft tabs canada 120 mg sildenafil online https://sgiviagraikn.com/


2022/05/02 02:55:00

Anbnvunnyさん

sildenafil citrate tablets sildenafil price cvs https://sildenafilkiol.com/


2022/05/03 20:06:25

Ebbeexictさん

how to get maximum effect from cialis buy generic cialiss https://dccialisxvf.com/


2022/05/04 05:04:17

JolwAudircurnさん

buy viagra with discover card generic viagra singapore https://aviagrasbt.com/


2022/05/04 19:21:40

Nndenplugsさん

comprar viagra levitra e cialis levitra purchase https://xclevitradb.com/


2022/05/05 13:08:31

Jebnplugsさん

canadian pharmacy symbicort online pharmacy technician certification


2022/05/09 14:12:37

Ebbeexictさん

superman combo viagra cialis where to get the best price on cialis https://dccialisxvf.com/


2022/05/09 23:06:52

JolwAudircurnさん

purchase viagra uk cheap viagra usa https://aviagrasbt.com/


2022/05/10 00:43:24

uzqipiさん

what is hcq medicine where can i get hydroxychloroquine


2022/05/10 10:18:41

Wnbhwongeさん

free levitra coupon levitra reviews by women https://glevitrargu.com/


2022/05/10 12:51:57

Nndenplugsさん

generic levitra vardenafil 20mg levitra 20 mg cost walmart https://xclevitradb.com/


2022/05/11 06:13:04

Jebnplugsさん

prescription drugs abuse Imodium


2022/05/11 21:07:31

Anbnvunnyさん

online sildenafil sildenafil citrate 20mg https://sildenafilkiol.com/


2022/05/12 20:28:11

biynvplvさん

cheap provigil 100mg order modafinil 100mg without prescription order generic modafinil


2022/05/14 21:43:04

MaggeeOaOaさん

dissertation writing online
doctoral dissertation help purpose
law dissertation writing services


2022/05/15 13:17:46

Wnbhwongeさん

levitra dosage vs cialis levitra and food https://glevitrargu.com/


2022/05/15 15:59:13

Nndenplugsさん

buy levitra canada levitra price costco https://xclevitradb.com/


2022/05/15 20:46:27

RegineOaOaさん

site:ameba.jp dissertation help
dissertation writing services mumbai
atlanta georgia dissertation help


2022/05/16 09:04:54

btlyewkjさん

modafinil 100mg for sale oral modafinil 200mg


2022/05/16 10:04:02

Jebnplugsさん

generic cialis online pharmacy canadian pharmacy online best


2022/05/16 14:57:58

KirstiOaOaさん

help with my dissertation
get help with dissertation
dissertation chapters


2022/05/20 09:43:19

mdnkqxswさん

modafinil 200mg cheap provigil 100mg pills generic modafinil 200mg


2022/05/18 11:03:58

kcmcppqdさん

modafinil tablet buy provigil 100mg without prescription modafinil medication


2022/05/18 17:07:06

oxplkgasさん

oral provigil 100mg cheap modafinil 200mg


2022/05/18 17:34:39

lujboqepさん

order provigil 200mg provigil 200mg price


2022/05/18 19:41:02

Ebbeexictさん

cialis super active experiences cialis asia https://dccialisxvf.com/


2022/05/19 04:42:09

JolwAudircurnさん

best viagra pills 200mg sildenafil soft gel capsule https://aviagrasbt.com/


2022/05/19 06:21:02

tzkhmvfdさん

erythromycin benzoyl gel reviews http://erythromycinn.com/#


2022/05/19 09:13:05

KirstiOaOaさん

phd dissertation writing
what is dissertation
need help writing a dissertation


2022/05/19 16:27:04

Wnbhwongeさん

levitra online australia levitra price walmart https://glevitrargu.com/


2022/05/19 19:13:23

Nndenplugsさん

brand levitra online levitra vs cialis vs viagra reviews https://xclevitradb.com/


2022/05/20 03:07:53

CharlaOaOaさん

uf dissertation
what is dissertation
dallas texas dissertation help


2022/05/20 13:07:36

Jebnplugsさん

online pharmacy tech certification target pharmacy online refills


2022/05/20 16:34:01

xaccrdrzさん

order provigil 200mg pill provigil price


2022/05/20 17:08:06

nprbinhpさん

order provigil 200mg



コメントを投稿する


お名前


コメント内容





TOP back