【Linux】コマンド名からパッケージを検索し、yum installする | 瀬戸内の雲のように

【Linux】コマンド名からパッケージを検索し、yum installする

Posted: 2019-01-08


スポンサーリンク

目次

背景

centosやamazon linuxでコマンドが無い時、yumを使ってインストールするかと思いますが、たまにコマンドとパッケージ名が一致しない場合にうまくいかないことがあります。

そんな時、実はyumのオプションで コマンド名からパッケージ名を検索する ことができるのです。

今回はそのやり方をメモしておきます。

 

具体例

実際に私が困ったのは snmpwalk を実行しようとした時です。amazon linuxではデフォルトでsnmpwalkがインストールされていません。

そこで、こんな感じでインストールを試みました。

yum install snmpwalk

 
しかし結果は以下の通りで、うまくいきません。

Loaded plugins: priorities, ps, update-motd, upgrade-helper
3246 packages excluded due to repository priority protections
No package snmpwalk available.
Error: Nothing to do

 
ここで、「ああ、そういえばsnmpwalkはなんとかutilsってパッケージだったかな」と思い、

yum install snmp-utils

を試してみました。しかし結果は

Loaded plugins: priorities, ps, update-motd, upgrade-helper
amzn-main                                                                                                                        | 2.1 kB  00:00:00
amzn-updates                                                                                                                     | 2.5 kB  00:00:00
3246 packages excluded due to repository priority protections
No package snmp-utils available.
Error: Nothing to do

またも失敗です。

 

解決策: yum provides

ということで早速ですが解決策を説明します。
yumには provides というサブコマンドが用意されており、これを使えば コマンド名からパッケージ名を検索 することができます。

実際にsnmpwalkの例で説明します。以下のようにコマンドを実行すると、

yum provides snmpwalk

 
このような結果が返ってきます。

Loaded plugins: priorities, ps, update-motd, upgrade-helper
3246 packages excluded due to repository priority protections
1:net-snmp-utils-5.5-54.1.20.amzn1.x86_64 : Network management utilities using SNMP, from the NET-SNMP project
Repo        : amzn-main
Matched from:
Filename    : /usr/bin/snmpwalk


少し見辛いですが、3行目に 1:net-snmp-utils-5.5-54.1.20.amzn1.x86_64 と記載されており、これがsnmpwalkが含まれるパッケージ名となります。

なので、以下のコマンドを実行すればsnmpwalkがインストールされます。

yum install net-snmp-utils

まとめ

ということで、インストールのパッケージ名がわからない場合は yum provides を使えばコマンド名からパッケージ名を検索することができます。
これ地味に便利ですのでお試しあれ。


スポンサーリンク




コメント一覧

2022/09/18 09:35:45

AlvinJowさん

Nicely put, Many thanks!
write an essay essay writing rubrics writing services for students


2022/09/18 09:53:32

Michaelpedさん

Whoa lots of wonderful facts!
online pharmacy no prescription legitimate canadian mail order pharmacies pharmeasy https://canadianonlinepharmacybase.com


2022/09/18 13:00:31

AlvinJowさん

Information very well applied.!
writing a theme essay https://freshapps.space/ websites that write essays


2022/09/18 19:36:03

Wendellunapsさん

Nicely put. Appreciate it!
canadian pharmacy no prescription needed buy online prescription drugs online pharmacies canada


2022/09/18 21:57:10

JoeteOaOaさん

lesbian cowgirls
free dating site
adult singles dating site


2022/09/19 04:28:05

AlvinJowさん

Nicely put. Kudos!
what should be in a college essay [url=https://agbsl.pro]https://agbsl.pro/[/url] academic writers


2022/09/19 11:34:52

AlvinJowさん

You revealed that adequately.
write essay https://essaywriting4you.com/ top dissertation writing services


2022/09/19 11:42:06

BruceCandyさん

Many thanks. Ample tips!

canadian drug stores online canadian prescriptions pharmacy on line


2022/09/19 14:59:47

AlvinJowさん

You actually expressed this fantastically!
essay writing service review argumentative essay essay paper writing services


2022/09/19 17:28:38

AlvinJowさん

Many thanks! I like this.
what can i write my essay on how to write a scholarship essay content writing services


2022/09/19 20:47:29

MarrisOaOaさん

write my essay for money
write my essay today
hire essay writer


2022/09/19 23:05:04

Wendellunapsさん

Wonderful material. Regards.
canada pharma limited llc viagra online canadian pharmacy canada drug pharmacy


2022/09/20 00:28:23

AlvinJowさん

Wonderful facts. Thanks!
essay paper writing how to write the college essay writers online


2022/09/20 15:47:51

DorolisaOaOaさん

help writing college essay
best writing service reviews
write my essay students


2022/09/21 02:36:10

Wendellunapsさん

Fantastic info. With thanks.
discount prescription drugs online online pharmacies no prescription pharmacy on line


2022/09/21 02:30:49

AlvinJowさん

Kudos. I like it!
how to write a essay introduction https://freshapps.space/ technical writing help


2022/09/21 05:01:46

BruceCandyさん

Wow all kinds of valuable advice!
drug costs ed meds online without doctor prescription canada drugs pharmacy


2022/09/21 08:24:46

AlvinJowさん

You actually stated it exceptionally well!
writing college application essay college personal essay prompts best college essay writing service


2022/09/21 14:08:44

MartyOaOaさん

custom essay writing help
college essay writers block
cheap essay writers


2022/09/21 20:07:14

Michaelpedさん

Nicely put. Regards!
canada prescriptions drugs canadadrugs canadian drugs https://canadianonlinepharmacybase.com


2022/09/22 04:46:33

AlvinJowさん

Nicely put, Appreciate it!
writing essay for college application https://essayssolution.com/ personal statement writing service london


2022/09/22 06:20:55

Wendellunapsさん

You actually said this well!
drugs from canada canada online pharmacies online medicine tablets shopping


2022/09/22 08:01:58

AlvinJowさん

You actually explained that well.
compare and contrast college essay college essay editing services custom writings service


2022/09/22 09:36:38

MerolaOaOaさん

personal statement essay help
essay helper
best essay writing service


2022/09/22 09:57:54

Michaelpedさん

Cheers! Loads of postings.

canadian pharmacies buy medication without an rx best canadian mail order pharmacies https://northwestpharmacylabs.com


2022/09/22 17:42:35

AlvinJowさん

Factor very well utilized!.
compare and contrast essay high school vs college https://essaypromaster.com/ creative writing websites for students


2022/09/22 23:34:24

Michaelpedさん

You said it perfectly.!
online discount pharmacy online pharmacy school international pharmacy https://northwestpharmacylabs.com


2022/09/23 05:31:41

AshlenOaOaさん

english essay helper
essay service
buy an essay online cheap


2022/09/24 01:01:49

AlvinJowさん

Wow lots of beneficial info.
best custom essay sites how to write compare and contrast essays blog writing services packages


2022/09/24 01:18:17

CharitaOaOaさん

in an essay help you guide
cambridge essay service
college essay writing service


2022/09/24 02:49:30

Michaelpedさん

You actually explained it adequately!
prescription drugs from canada canadian drugs pharmacy online pharmacy https://canadapharmacyspace.com


2022/09/24 08:06:35

AlvinJowさん

Regards! Loads of postings!

how to write a essay paper https://theessayswriters.com/ university essay writing service


2022/09/24 19:16:38

CharitaOaOaさん

help in essay writing
help on college essay
essay proofreading services


2022/09/25 02:29:38

AlvinJowさん

Appreciate it. Numerous facts!

write my college essay me buy essays online australia how to cite a website in an essay mla


2022/09/25 14:41:54

NaniceOaOaさん

write my essay help
online essay writing services
essay about military service


2022/09/27 05:09:05

PennyOaOaさん

custom essays writing service
buy essays cheap
good customer service essay


2022/09/28 01:15:38

TammieOaOaさん

custom essay org
fast custom essays
online essay writing service review


2022/09/28 20:45:04

AntonieOaOaさん

essay writing on customer service
best essay writing service reviews
custom essay writers


2022/09/29 16:14:37

RhiamonOaOaさん

help writing essays for scholarships
essay help sydney
essays writing services


2022/09/30 11:39:59

CharoOaOaさん

help writing scholarship essays
cheap essay buy
cheap custom essay


2022/10/01 06:19:16

DronaOaOaさん

us essay writers
essay writing website
college essay writing services


2022/10/02 01:58:11

TwylaOaOaさん

best cheap essay
custom essays usa
essay proofreading services


2022/10/02 22:27:32

LeilahOaOaさん

help me with my essay
help writing college essay
cheap essay


2022/07/08 03:27:51

AurlieOaOaさん

best slot machines to play
penny slots games free
real casino free slots


2022/07/20 19:12:26

ChandaOaOaさん

paper writing service
help with dissertation proposal
art dissertation help


2022/07/21 13:51:05

AvivaOaOaさん

writing a dissertation in a day
uf thesis and dissertation
dissertation paper writing service


2022/07/22 09:16:58

DortheaOaOaさん

dissertation only phd
acknowledgements dissertation
dissertation abstract example


2022/07/24 04:19:19

SuzannOaOaさん

buy dissertations
dissertations writing
books and dissertation about mafa people


2022/07/24 22:50:46

SalliOaOaさん

doctoral dissertation writing assistance
dissertation help service quality
dissertation structure


2022/07/25 19:09:51

DarsieOaOaさん

dissertation statistics help
writing acknowledgement dissertation
language editing phd thesis


2022/07/25 22:16:17

TandiOaOaさん

blackjack app real money
best mobile casinos
usa casino online


2022/07/26 16:58:23

MabelleOaOaさん

dissertation defense
writing dissertation and grant proposals
tips on writing a dissertation


2022/07/26 21:05:18

Jariewereさん

Treatment For Gonorrhea Amoxicillin cialis online no prescription


2022/07/26 23:35:31

TandiOaOaさん

mobile online casino
top online casino
best casino online


2022/07/27 14:41:23

JenneeOaOaさん

phd dissertation example
cheap dissertation writing
dissertation handbook


2022/07/28 00:24:37

AbagaelOaOaさん

win real money online casino for free
real money online slots
best welcome bonus online casino


2022/07/28 11:08:56

HerminaOaOaさん

help with dissertation topic
dissertation meaning
writing my dissertation


2022/07/28 23:45:37

ShaylaOaOaさん

best online us casinos
online american casinos
live online casino usa


2022/07/29 06:51:35

AudreOaOaさん

online edd no dissertation
buy dissertation writing services
phd dissertation example


2022/07/29 22:35:07

VerenaOaOaさん

casinos online real money
casinos online real money no deposit
online casino best welcome bonus


2022/07/30 02:49:49

HestiaOaOaさん

writing a dissertation literature review
define dissertation
rfp writing services


2022/07/30 20:54:46

DixieOaOaさん

top usa online casinos
bingo online for money
online casinos us


2022/07/31 18:49:40

LaureenOaOaさん

casinos online
mobile casinos for real money
usa online casino


2022/08/01 19:40:55

FranniOaOaさん

online casino with free signup bonus real money usa no deposit
free bonus casino
best online casino reviews


2022/08/02 18:03:02

PearlOaOaさん

online bingo for money
top online casinos
best free casino bonus no deposit


2022/08/03 16:32:02

BobbieOaOaさん

casino no deposit
online casino real money
best casinos online


2022/08/04 14:45:11

LeslieOaOaさん

free casino bonus
mobile casino
betonline casino


2022/08/07 14:49:11

TrudieOaOaさん

real money casino games
best casino site
best online casino usa


2022/08/07 20:22:47

HonorOaOaさん

secure vpn service
free windows vpn
best buy vpn


2022/08/08 14:23:17

JaynellOaOaさん

best online casino usa
online bingo real money
no deposit sign up bonus casino


2022/08/08 16:39:16

TeddieOaOaさん

buy a vpn uk
buy cyberghost vpn
cyberghost vpn free


2022/08/09 22:29:21

DulceaOaOaさん

best mobile casino
us online casinos
online casinos with no deposit bonus


2022/08/10 01:03:52

JenneeOaOaさん

best vpn service 2022
best vpn for fire tv
free vpn australia


2022/08/10 21:19:02

JenneeOaOaさん

best browser vpn
best vpn software
torrent vpn


2022/08/10 21:53:34

CarolanOaOaさん

best online blackjack
casino sites
mobile online casino


2022/08/11 17:35:27

AshleighOaOaさん

tunnelbear vpn
opera vpn review
best free vpn?


2022/08/11 21:26:33

FanyaOaOaさん

us online casinos
casino no deposit sign up bonus
win real money online


2022/08/12 14:33:58

KelseyOaOaさん

chrome vpn extension free
vpn for firestick
avast secureline vpn review


2022/08/12 22:29:43

CarolinOaOaさん

win money online
deposit casino bonus
more casino games


2022/08/15 03:11:47

Piniwhipsさん

Zithromax Doseage ivermectin for humans for sale


2022/08/15 12:20:14

FifineOaOaさん

no deposit sign up bonus casino
casino no deposit sign up bonus
best deposit bonus casino


2022/08/15 14:51:15

SheelaghOaOaさん

buy avast vpn
free vpn for torrenting
best windows vpn app


2022/08/16 11:16:53

GwenoreOaOaさん

mobile casinos
casino games that pay real money
sign up bonus casino


2022/08/22 03:32:23

encathyさん

purchase stromectol online elevage levitra


2022/08/23 19:35:10

GladiOaOaさん

gay christian dating app
#ИМЯ?
black gay men dating sites


2022/08/24 14:56:00

JeraleeOaOaさん

latino gay dating site's
gay black men dating
gay grandpa dating


2022/08/24 16:55:29

JoannOaOaさん

skycouger gf
adlt dating
text hot naked singles


2022/08/25 05:14:41

JoannOaOaさん

searchingforsingles
flirt singles
cdff dating site login


2022/08/25 10:39:16

KyrstinOaOaさん

gay mature dating sites
new dating gay sites
which dating app has most gay guys


2022/08/26 03:06:15

BertheOaOaさん

best online dating
local personals
sex dating site


2022/08/27 00:19:26

KaitlynnOaOaさん

dating online free
our time dating website login
internet dating


2022/08/27 21:41:14

DavinaOaOaさん

singles dating sites
top rated dating websites
dating site free online


2022/08/28 02:42:10

GladiOaOaさん

tree gay men dating sites missouri
gay or bisexual dating
completely free gay dating sites


2022/08/28 19:50:14

ChelsaeOaOaさん

best site for online dating
best free online dating
free dating chatting online


2022/08/28 22:01:52

JeraleeOaOaさん

bareback gay men dating
how much is membership for gay dating sites
central oregon gay dating


2022/08/29 17:25:53

KyrstinOaOaさん

gay dating documentary youtube
gay black and white men dating
grindr gay dating site


2022/08/29 18:12:04

EmaliaOaOaさん

free personals
adult-daiting site
aduilt dating


2022/08/30 13:40:23

CasandraOaOaさん

casino usa online
free welcome bonus no deposit casino
free casino money


2022/08/30 16:06:50

KarryOaOaさん

top dating websites
single women phone numbers
free online


2022/08/31 09:09:28

AmataOaOaさん

live online casino usa
online real money casinos
win money online


2022/08/31 20:00:51

Inwableさん

cialis online prescription Before I go on, I figured this would be the perfect opportunity to give a quick run down on vaginal lubrication


2022/09/02 02:12:19

GennieOaOaさん

i wanna fuck gay chat
chat random gay
live gay chat


2022/09/02 02:02:08

Inwableさん

Doses greater than 40 mg have not been studied in patients with pulmonary arterial hypertension cialis otc


2022/09/02 04:14:13

LettiOaOaさん

dating online
which online dating site is best?
dating best site


2022/09/02 22:17:51

DeeynOaOaさん

gay latin chat
gay zoom webcam chat
cookeville tn gay chat


2022/09/02 23:47:23

TiesteRatさん

priligy review I m one of your biggest fans


2022/09/03 17:32:35

EmaleeOaOaさん

asain gay chat phone lines free
free gay sex chat
b - gay chat


2022/09/04 08:07:43

TiesteRatさん

Originally created and sold by Bayer Pharmaceuticals, the drug s patent expired in October 2018 dapoxetine for premature


2022/09/04 12:54:35

StephineOaOaさん

anonymous gay chat
aol chat room gay
b-gay chat


2022/09/04 21:57:52

Caulapyさん

However if you are an individual who likes to keep their private life private, even talking to a doctor can feel like an intrusion best site to buy cialis online Consumers should also be aware that Viagra on the Internet costs on average twice as much as in regular pharmacies, and that in our test 20 of the pharmacies charged the credit card without delivering a product


2022/09/06 01:48:35

Alvenruilaさん

Good posts. With thanks. how to write a thesis how to write a summary response essay


2022/09/06 06:47:23

Abrahamgonさん

You mentioned that superbly! custom law essay custom paper thesis writing service


2022/09/07 04:13:55

RobenaOaOaさん

rastaboy gay chat
fcn free gay chat free chat network
gay universe man chat


2022/09/08 15:14:04

kapcreaspさん

I have not had night or morning wood, as soon as I come it loses all firmness real cialis no generic On Monday and Sunday nights, I run across the commons after dinner-Mom always yells, Is your homework done


2022/09/09 20:09:46

TallouOaOaさん

frre gay wedcam chat
gay phone chat locker*
free gay adult chat


2022/09/09 21:59:10

Ownentyさん

Women who agree to participate will sign a written informed consent. ovulating with clomid


2022/09/10 16:10:57

MarilinOaOaさん

gay chat room in my area
gay guy chat rooms no registration
gay live chat


2022/09/12 23:59:35

Dontectさん

7 pregnancy rate, nearly three times that of the control group 13. nolvadex pct side effects CC 50 mg d orally was prescribed for 3 months as an add-on therapy together with Oct- LAR and or CAB.


2022/09/13 17:46:07

AlvinJowさん

You said it perfectly.!
essay writing games someone write my essay get help writing professional business plan


2022/09/13 20:05:20

AlvinJowさん

Seriously all kinds of beneficial info.
how to write an opinion essay writing an essay for college admission website analysis essay


2022/09/13 21:24:21

BruceCandyさん

Thanks! Lots of knowledge!

drugs from canada with prescription medical information online walmart pharmacy online


2022/09/14 02:54:22

AlvinJowさん

Cheers! I like this.
college essay for transfer students writing for life paragraphs and essays write my report free


2022/09/14 09:05:09

Dontectさん

long term side effects of tamoxifen


2022/09/14 19:25:34

MavisOaOaさん

single seniors dating sites
adult-daiting site
dating services melbourne


2022/09/14 21:26:22

AlvinJowさん

Useful posts. Regards.
macbeth essay help legal essay writing thesis writing help


2022/09/14 21:57:13

Wendellunapsさん

Appreciate it, A lot of information!

canadian pharmacy cialis 20mg canada drugs direct mexican border pharmacies


2022/09/14 23:22:39

DeeynOaOaさん

gay pnp chat free
gay phone chat meet locals "welcome to the
gay men snap chat


2022/09/15 04:13:01

AlvinJowさん

You actually reported this really well!
essay writing service law essay typer ghostwriter service


2022/09/15 07:46:37

AlvinJowさん

Great information. Cheers!
colleges that do not require essays how to write an argument essay professional dissertation writing services


2022/09/15 10:03:24

AlvinJowさん

Thank you! Wonderful information!
how to write an exemplification essay https://homeworkcourseworkhelps.com/ homework help writing


2022/09/15 11:12:34

Wendellunapsさん

Very good forum posts. Cheers!
canadianpharmacy prescription cost comparison buy prescription drugs canada


2022/09/15 13:24:34

BruceCandyさん

You expressed that superbly!
pharmacy tech prescription drugs canada canadian rx pharmacy online


2022/09/15 20:58:11

JuanitaOaOaさん

dating sites free
browse free dating without registering
best dating website in usa


2022/09/16 07:33:15

GennieOaOaさん

gay chat rooms on aol
gay random chat x4
live gay webcam chat rooms


2022/09/16 13:55:45

Wendellunapsさん

Well voiced certainly! .
cialis from canada walgreens online pharmacy cvs online pharmacy


2022/09/16 14:52:56

Beeplelicさん

Reeves, in Methods in Enzymology, 2015. doxycycline staph infection


2022/09/16 18:39:16

AlvinJowさん

Thank you! A lot of data.

how to write essays faster https://writingthesistops.com/ writing websites for students


2022/09/16 21:43:09

MaisieOaOaさん

eris free downloads chatting apps
topchatsites chat
sites online dating


2022/09/17 04:52:12

BruceCandyさん

Fantastic facts. With thanks.
canadian drugs pharmacy canadian drugstore canadian pharmacies shipping to usa


2022/09/17 11:06:39

AlvinJowさん

Great stuff. Thanks a lot.
writing a college admissions essay essays writing service essay about website


2022/09/17 13:27:45

AlvinJowさん

Thanks, Lots of posts!

can money buy you happiness essay college personal statement essay australian essay writing service


2022/09/17 22:45:14

EachelleOaOaさん

completely free dating sites
westminster dating app the world
best free online dating sites


2022/09/18 00:09:29

Beeplelicさん

Irinotecan was given at 125 mg m 2 week for 4 weeks in 6- week cycles, together with continuous doxycycline at 100 mg twice daily on Day 1 and 50 mg twice daily thereafter. doxycycline mrsa THE CONTENT DOES NOT AND IS NOT INTENDED TO CONVEY MEDICAL ADVICE AND DOES NOT CONSTITUTE THE PRACTICE OF MEDICINE.



コメントを投稿する


お名前


コメント内容





TOP back