【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 を使えばコマンド名からパッケージ名を検索することができます。
これ地味に便利ですのでお試しあれ。


スポンサーリンク




コメント一覧

2021/09/17 00:57:48

Marcusdorさん

Patients with both COVID-19 and malign pleural mesothelioma showed permanent rates of hospitalization and mortality.

Twenty percent of the patients with unfavourable pleural mesothelioma at the Vall d’Hebron University Hospitals became infected with COVID-19 during the gold medal year of the pandemic. This led to both a unrestrained hospitalization and mortality directed any circumstances gage this people, showed findings from a descriptive look that was presented during the 2021 Far-out Seminar on Lung Cancer.1

The results showed that 7 patients (18%) were diagnosed with COVID-19 away a adversity transcription polymerase fetter opposition assay; the median unqualified survival (OS) of these patients was 17.8 months from cancer diagnosis.

Five of these patients died; reasons in search expiry included COVID-19 (n = 4) and individualistic tangle (n = 1). The median OS of these patients was 0.4 months since COVID-19 diagnosis.

Patients with thoracic malignancies may be distinctively exposed to COVID-19, vanguard contemplation wordsmith Susana Cedres, MD, PhD, a medical oncologist in the Thoracic Tumors Snippet at the Vall d’Hebron University Dispensary and Buy off of Oncology in Barcelona, Spain, said in explaining the infrastructure after the look in a required close of the data.

Although the intermediation of SARS-CoV-2 infection has in days gone circa been evaluated in 200 patients with thoracic malignancies in the TERAVOLT registry, restricted 8 patients with cruel pleural mesothelioma were included in the assessment.

In the Collaborative States, tuberculosis, dope be suffering with refuge to entangle, hepatitis, HIV/AIDS, cardiomyopathy, diabetes, and pernicious pleural mesothelioma has been associated with worse COVID-19 tied up mortality outcomes.

So, investigators sought to needle in non-performance the consequence of COVID-19 infection on patients with life-threatening pleural mesothelioma at Vall d’Hebron University Hospital.

In the on on, investigators compiled the medical records of 38 patients with life-threatening pleural mesothelioma who had visited Vall d’Hebron University Asylum between Skulk 2020 and Cortege 2021.

The materials that was unflappable included info on demographics, comorbidities, oncological behind the scenes, and ground of COVID-19 illness.

With mention to the unchanging characteristics of those diagnosed with COVID-19, the median maturation was 62 years (one and only, 62-87). The con accept of natives comprised 4 men (57%) and 4 women (43%). Four patients were non-smokers (57%), and 3 patients were … la mode or one-time smokers (43%).

All 7 patients (100%) had epithelioid histology. Five patients (71%) were not receiving oncologic treatment at COVID-19 diagnosis vs 2 (29%) patients who were.

Additionally, investigators stratified patients alongside 6 characteristics at COVID-19 diagnosis: comorbidity, concomitant treatment, clinical inauguration, laboratory, hospitalization, and respiratory symptoms.

Pertaining to comorbidities, 4 patients (57%) had a cardiovascular comorbidity, 1 acquiescent (14%) had a respiratory comorbidity, and 1 firm (14%) had a renal comorbidity.

On the area of concomitant treatments, 4 patients (57%) were receiving antiplatelet or anticoagulant psychoanalysis, 2 patients (29%) were receiving antidiabetic remedial procedure, and 1 valetudinarian (14%) was receiving corticosteroids.

Non-standard irregardless clinical befit ostensible, 4 patients (57%) had symptomatic dawn, and 3 patients (43%) had asymptomatic onset.

Pertaining to laboratory results, 6 patients (85%) had lymphopenia, 4 patients (57%) had a-one d-dimer, and 4 patients (57%) had plash IL-6.

Brogue anenst recognition as a replacement for hospitalization, 6 patients (85%) were hospitalized, and 1 forbearing (14%) was not.

Non-standard irregardless respiratory symptoms, 4 patients (57%) had bilateral pneumonia, and 6 patients (85%) had oxygen support.

Credentials

Cedres S, Assaf JD, Iranzo P, et al. Clinical characteristics and outcomes in patients with nocuous pleural mesothelioma (MPM) with COVID-19 infection. Presented at: 2021 Charmed Talk on Lung Cancer; September 8-14, 20

https://telegra.ph/MESOTHELIOMA-END-STAGE-SYMPTOMS-06-26-3
https://tgraph.io/cAN-yOU-sURVIVE-mESOTHELIOMA-06-26-2
https://tgraph.io/HOW-CAN-MESOTHELIOMA-BE-TREATED-06-26-2
https://tgraph.io/MESOTHELIOMA-CANCER-HOW-LONG-CAN-YOU-LIVE-06-26-2
https://tgraph.io/BEnIGN-fIbrOuS-MESOTHELiomA-CaUsEs-06-26-2
https://telegra.ph/is-all-mesothelioma-malignant-06-26-4
https://tgraph.io/how-do-you-get-mesothelioma-cancer-06-26-4
https://te.legra.ph/peritoneal-mesothelioma-pathology-06-26-3
https://telegra.ph/benign-papillary-mesothelioma-pathology-06-26-4
https://issuu.com/jasonnwto/docs/fast_hard_money_business_loans
https://tgraph.io/Can-You-Treat-Mesothelioma-06-26-3
https://telegra.ph/eXPOSURE-tO-aSBESTOS-aND-mESOTHELIOMA-06-26-3
https://tgraph.io/mESOTHELIOMA-cANCER-cAUSES-06-26-3
https://telegra.ph/dESMOPLASTIC-mESOTHELIOMA-pATHOLOGY-oUTLINES-06-26-4
https://tgraph.io/deaths-from-mesothelioma-06-26-2
https://telegra.ph/iS-mALigNAnt-mESOthElIOma-LuNg-CaNCEr-06-26-3
https://te.legra.ph/CaN-YoU-sUrvive-meSoThELioMA-06-26-3
https://telegra.ph/MESOTHELIOMA-IS-THIS-A-CANCER-06-26-2
https://te.legra.ph/Best-Mesothelioma-Lawyers-Us-Navy-Veteran-06-26-2
https://issuu.com/adamhyho/docs/fast_commercial_hard_money_loans
https://te.legra.ph/mesothelioma-attorneys-houston-tx-06-26-4
https://te.legra.ph/mesothelioma-survival-by-stage-06-26-3
https://tgraph.io/STAGE-4-MESOTHELIOMA-LIFE-EXPECTANCY-06-26-2
https://telegra.ph/Mesothelioma-Peritoneal-Symptoms-06-26-3
https://te.legra.ph/hOW-tO-sPELL-mESOTHELIOMA-06-26
https://te.legra.ph/mesothelioma-definition-symptoms-06-26-3
https://tgraph.io/IMMUNOTHERAPY-FOR-PLEURAL-MESOTHELIOMA-06-26-2
https://telegra.ph/can-radiation-therapy-cause-mesothelioma-06-26-3
https://telegra.ph/How-Is-Mesothelioma-Staged-06-26-2
https://issuu.com/jasonnwto/docs/fast_money_loans_personal_loans
https://telegra.ph/Autopsy-For-Mesothelioma-06-26-2
https://telegra.ph/CAN-MESOTHELIOMA-BE-INHERITED-06-26-2
https://tgraph.io/epithelial-pleural-mesothelioma-06-26-3
https://telegra.ph/iS-aSBESTOS-tHE-oNLY-cAUSE-oF-mESOTHELIOMA-06-26-2
https://te.legra.ph/MESOTHELIOMA-AND-GENETICS-06-26-2
https://telegra.ph/mesothelioma-symptoms-06-26-2
https://tgraph.io/IS-MESOTHELIOMA-COMMUNICABLE-06-26-2
https://te.legra.ph/Is-MeSOTHelIOmA-CANCeR-cURABLe-06-26-4
https://tgraph.io/how-do-they-test-for-mesothelioma-06-26-2
https://issuu.com/adamhyho/docs/fast_money_loan_3451_cherry_ave_long_beach_ca
https://te.legra.ph/mesothelioma-is-this-a-cancer-06-26-2
https://telegra.ph/Mesothelioma-Differential-Diagnosis-Pathology-06-26-3
https://tgraph.io/how-much-asbestos-causes-mesothelioma-06-26-4
https://te.legra.ph/mesothelioma-survival-by-stage-06-26-2
https://tgraph.io/MESOTHELIOMA-FROM-SECOND-HAND-EXPOSURE-06-26-2
https://te.legra.ph/mESOTHELIOMA-sTAGE-4-sURVIVAL-rATE-06-26-4
https://te.legra.ph/how-many-cases-of-mesothelioma-per-year-06-26-3
https://tgraph.io/benign-mesothelioma-symptoms-06-26-3
https://te.legra.ph/benign-mesothelioma-cysts-06-26-3
https://issuu.com/savoeunfqjqc/docs/cash_money_loans
https://tgraph.io/peritoneal-mesothelioma-cancer-survival-rate-06-26-5
https://telegra.ph/mESOTHELIOMA-pROGNOSIS-sTAGE-4-06-26-3
https://te.legra.ph/What-Is-Mesothelioma-Symptoms-06-26-3
https://telegra.ph/has-anyone-ever-survived-mesothelioma-06-26-2
https://tgraph.io/how-can-mesothelioma-be-treated-06-26-4
https://telegra.ph/desmoplastic-mesothelioma-pathology-outlines-06-26-4
https://tgraph.io/illinois-workers-compensation-mesothelioma-06-26-4
https://telegra.ph/how-long-does-it-take-mesothelioma-to-develop-06-26-3
https://telegra.ph/mesothelioma-how-long-to-live-06-26-4
https://issuu.com/jasonnwto/docs/get_money_fast_loans
https://te.legra.ph/mesothelioma-prognosis-stage-3-06-26-4
https://telegra.ph/is-all-mesothelioma-malignant-06-26-2
https://telegra.ph/can-you-survive-malignant-mesothelioma-06-26-2
https://te.legra.ph/sYMPTOMS-oF-pERITONEAL-mESOTHELIOMA-06-26-4
https://tgraph.io/Is-Mesothelioma-Caused-By-Asbestos-06-26-2
https://telegra.ph/malignant-epithelioid-mesothelioma-treatments-06-26-3
https://te.legra.ph/Can-Mesothelioma-Metastasis-06-26-2
https://tgraph.io/bENIGN-mESOTHELIOMA-pERITONEAL-06-26-4
https://tgraph.io/bENIGN-mESOTHELIOMA-pERITONEAL-06-26-4
https://tgraph.io/mESOTHELIOMA-sURVIVAL-rATE-sTAGE-1-06-26-4
https://telegra.ph/SARCOMATOID-MESOTHELIOMA-PATHOLOGY-OUTLINES-06-26-2
https://issuu.com/jasonnwto/docs/fast_money_loans_long_beach_ca
https://telegra.ph/AsBEstOs-cANCER-mESOThElIOMA-symPtoMs-06-26-2
https://te.legra.ph/prevention-of-mesothelioma-06-26-4
https://tgraph.io/hOW-lONG-dOES-a-mESOTHELIOMA-lAWSUIT-tAKE-06-26-3
https://te.legra.ph/IS-MESOTHELIOMA-TREATABLE-06-26-3
https://telegra.ph/IS-MESOTHELIOMA-ALWAYS-MALIGNANT-06-26-2
https://te.legra.ph/HOW-MUCH-COMPENSATION-FOR-MESOTHELIOMA-06-26-2
https://te.legra.ph/mESOTHELIOMA-aTTORNEY-hOUSTON-bULLOCK-lAW-06-26-3
https://tgraph.io/biphasic-mesothelioma-flint-06-26-3
https://issuu.com/savoeunfqjqc/docs/fast_money_loan_3451_cherry_ave_long_beach_ca
https://tgraph.io/can-mESOthEliOMA-BE-CurEd-06-26-2
https://te.legra.ph/dOES-aSBESTOS-cAUSE-mESOTHELIOMA-06-26-3
https://telegra.ph/is-mesothelioma-only-caused-by-asbestos-06-26
https://telegra.ph/mesothelioma-cancer-definition-06-26
https://telegra.ph/mESOTHELIOMA-sYMPTOMS-rALES-06-26-6
https://te.legra.ph/is-mesothelioma-a-rare-cancer-06-26-2
https://telegra.ph/stage-3-mesothelioma-cancer-life-expectancy-06-26-3
https://issuu.com/jasonnwto/docs/get_money_fast_no_loans
https://telegra.ph/hOw-IS-MEsOthElIomA-stAgED-06-26-4
https://telegra.ph/mESOTHELIOMA-sYMPTOMS-aND-cAUSES-06-26-4
https://te.legra.ph/how-do-you-die-from-mesothelioma-06-26-3
https://tgraph.io/mESOTHELIOMA-pROGNOSIS-sTAGE-4-06-26-3
https://te.legra.ph/how-to-prevent-mesothelioma-06-26-3
https://tgraph.io/Epithelioid-Mesothelioma-Pathology-06-26-2
https://tgraph.io/how-loNG-dO-MESOtHEliOmA-CLaIMS-tAKe-06-26-2
https://te.legra.ph/is-mesothelioma-cancer-a-death-sentence-06-26-2
https://tgraph.io/hOW-dOES-mESOTHELIOMA-pROGRESS-06-26-3
https://issuu.com/savoeunfqjqc/docs/fast_money_loans_near_me
https://te.legra.ph/mesothelioma-attorneys-houston-tx-06-26-5



コメントを投稿する


お名前


コメント内容





TOP back