[小ネタ]yumコマンドにvオプションをつけると便利だよってお話

[小ネタ]yumコマンドにvオプションをつけると便利だよってお話

nullpopopo96x96皆さんこんばんは。夜のシェル芸人 (っ´∀`)っ ゃー です。yumコマンドのhelpやmanを見るとわかるのですが、「-v」オプションをつけることで処理の詳細が見えて結構便利だったりします。ただでさえ依存関係のあるパッケージを一緒にインストールしてくれたりして便利なのですが、どのライブラリに依存してるかとかが見えるので、特にいろんなリポジトリを有効にしている環境だとトラブルシュートに重宝するでしょう(私は本当に必要なときだけenablerepoしていますが)。

[ec2-user@ip-10-100-248-210 ~]$ sudo yum -v install mailx
Loading "priorities" plugin
Loading "security" plugin
Loading "update-motd" plugin
Loading "upgrade-helper" plugin
Config time: 1.914
Yum Version: 3.2.29
Setting up Package Sacks
amzn-main                                                                                                                                       | 2.1 kB     00:00
amzn-updates                                                                                                                                    | 2.3 kB     00:00
pkgsack time: 4.020
rpmdb time: 0.000
Setting up Install Process
Obs Init time: 0.848
Resolving Dependencies
--> Running transaction check
---> Package mailx.x86_64 0:12.4-6.6.amzn1 will be installed
Checking deps for mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('config(mailx)', 'EQ', ('0', '12.4', '6.6.amzn1')) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libssl3.so(NSS_3.2)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libnss3.so(NSS_3.2)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libnss3.so(NSS_3.7)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libc.so.6(GLIBC_2.3.4)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libc.so.6(GLIBC_2.4)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libc.so.6(GLIBC_2.3)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libsmime3.so(NSS_3.6)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libc.so.6(GLIBC_2.2.5)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libnss3.so(NSS_3.4)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('rtld(GNU_HASH)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libc.so.6(GLIBC_2.7)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('/bin/sh', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libsmime3.so(NSS_3.2)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libc.so.6(GLIBC_2.11)(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libnspr4.so()(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libnss3.so()(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libc.so.6()(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libssl3.so()(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libsmime3.so()(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libplc4.so()(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
looking for ('libgssapi_krb5.so.2()(64bit)', None, (None, None, None)) as a requirement of mailx.x86_64 0:12.4-6.6.amzn1 - u
--> Finished Dependency Resolution
Dependency Process ending
Depsolve time: 20.668

Dependencies Resolved

=======================================================================================================================================================================
 Package                             Arch                                 Version                                        Repository                               Size
=======================================================================================================================================================================
Installing:
 mailx                               x86_64                               12.4-6.6.amzn1                                 amzn-main                               250 k

Transaction Summary
=======================================================================================================================================================================
Install       1 Package(s)

Total download size: 250 k
Installed size: 452 k
Is this ok [y/N]: y
Downloading Packages:
mailx-12.4-6.6.amzn1.x86_64.rpm                                                                                                                 | 250 kB     00:00
Running rpm_check_debug
Member: mailx.x86_64 0:12.4-6.6.amzn1 - u
Adding Package mailx-12.4-6.6.amzn1.x86_64 in mode u
rpm_check_debug time: 0.127
Running Transaction Test
Member: mailx.x86_64 0:12.4-6.6.amzn1 - u
Adding Package mailx-12.4-6.6.amzn1.x86_64 in mode u
Transaction Test Succeeded
Transaction Test time: 2.975
Member: mailx.x86_64 0:12.4-6.6.amzn1 - u
Adding Package mailx-12.4-6.6.amzn1.x86_64 in mode u
Running Transaction
  Installing : mailx-12.4-6.6.amzn1.x86_64                                                                                                                         1/1
  Verifying  : mailx-12.4-6.6.amzn1.x86_64                                                                                                                         1/1
VerifyTransaction time: 3.930
Transaction time: 11.354

Installed:
  mailx.x86_64 0:12.4-6.6.amzn1

Complete!

こんな感じで出力されます。