タイトルの通りではありますが、、、
AmazonLinuxだと下記コマンドで最新パッケージのみを抽出できたのですが、
CentOS7だと、パッチ情報がすべて表示されてしまいます。
bash
1yum check-update --security
なにかうまいこと抽出する方法はありませんでしょうか?
実際に自分がやってみたこと
AmazonLinux
bash
1[hoge-y@ip-xx-xx-xx-xx ~]$ sudo yum check-update 2Loaded plugins: priorities, update-motd, upgrade-helper 3amzn-main | 2.1 kB 00:00:00 4amzn-updates | 2.3 kB 00:00:00 52 packages excluded due to repository priority protections 6 7authconfig.x86_64 6.2.8-30.31.amzn1 amzn-updates 8aws-cfn-bootstrap.noarch 1.4-21.13.amzn1 amzn-updates 9aws-cli.noarch 1.11.132-1.47.amzn1 amzn-updates 10bash.x86_64 4.2.46-28.37.amzn1 amzn-updates 11curl.x86_64 7.51.0-9.75.amzn1 amzn-updates 12glibc.x86_64 2.17-196.172.amzn1 amzn-updates 13glibc-common.x86_64 2.17-196.172.amzn1 amzn-updates 14glibc-devel.x86_64 2.17-196.172.amzn1 amzn-updates 15glibc-headers.x86_64 2.17-196.172.amzn1 amzn-updates 16kernel.x86_64 4.9.43-17.38.amzn1 amzn-updates 17libcurl.x86_64 7.51.0-9.75.amzn1 amzn-updates 18python27-botocore.noarch 1.5.95-1.65.amzn1 amzn-updates 19system-release.noarch 2017.03-0.1 amzn-updates 20wget.x86_64 1.18-3.27.amzn1 amzn-updates 21yum.noarch 3.4.3-150.70.amzn1 amzn-updates 22[hoge-y@ip-xx-xx-xx-xx ~]$
上記の出力だと、パッケージに対して最新バージョンのみが出力されているように見える(理想)
CentOS7
bash
1[hoge-y@ip-xx-xx-xx-xx ~]$ sudo yum check-update 2Loaded plugins: fastestmirror 3Loading mirror speeds from cached hostfile 4 * base: centos.mirror.iweb.ca 5 * extras: centos.mirror.iweb.ca 6 * updates: centos.mirror.iweb.ca 7 --> libdb-5.3.21-19.el7.i686 from base excluded (updateinfo) 8 --> libcxgb4-static-1.3.5-3.el7.i686 from base excluded (updateinfo) 9 --> libcxgb4-static-1.3.5-3.el7.x86_64 from base excluded (updateinfo) 10 --> libcxgb3-static-1.3.1-8.el7.x86_64 from base excluded (updateinfo) 11 --> libcxgb4-1.3.5-3.el7.x86_64 from base excluded (updateinfo) 12: 13200行ほど出力 14: 15 --> firefox-45.7.0-1.el7.centos.x86_64 from updates excluded (updateinfo) 16 --> firefox-45.7.0-1.el7.centos.i686 from updates excluded (updateinfo) 17 --> firefox-45.7.0-2.el7.centos.x86_64 from updates excluded (updateinfo) 18 --> firefox-45.7.0-2.el7.centos.i686 from updates excluded (updateinfo) 19 --> firefox-52.0-4.el7.centos.x86_64 from updates excluded (updateinfo) 20 --> libvirt-daemon-driver-network-2.0.0-10.el7_3.2.x86_64 from updates excluded (updateinfo) 21 --> libvirt-daemon-driver-storage-2.0.0-10.el7_3.2.x86_64 from updates excluded (updateinfo) 22 --> libvirt-daemon-driver-storage-2.0.0-10.el7_3.4.x86_64 from updates excluded (updateinfo) 23 --> libvirt-daemon-driver-secret-2.0.0-10.el7_3.5.x86_64 from updates excluded (updateinfo) 24 --> libvirt-daemon-driver-secret-2.0.0-10.el7_3.9.x86_64 from updates excluded (updateinfo) 25 --> libvirt-daemon-kvm-2.0.0-10.el7_3.2.x86_64 from updates excluded (updateinfo) 26 --> libvirt-daemon-kvm-2.0.0-10.el7_3.4.x86_64 from updates excluded (updateinfo) 27 --> libvirt-daemon-driver-storage-2.0.0-10.el7_3.5.x86_64 from updates excluded (updateinfo) 28 --> libvirt-daemon-driver-storage-2.0.0-10.el7_3.9.x86_64 from updates excluded (updateinfo) 29 --> libvirt-daemon-kvm-2.0.0-10.el7_3.5.x86_64 from updates excluded (updateinfo) 30 --> libvirt-daemon-kvm-2.0.0-10.el7_3.9.x86_64 from updates excluded (updateinfo) 31No packages needed for security; 53 packages available
明らかに同じパッケージに対して過去のバージョンのパッチも出力されているように見える。
これをAmazonLinuxみたいに出力させたい!
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/07 03:20