このブログを検索

2018年3月20日火曜日

インストールパッケージの削除→再インストール

OS:CentOS7

[root@cent01 ~]# yum list installed  ←インストール済パッケージを確認
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
インストール済みパッケージ
GeoIP.x86_64                                      1.5.0-11.el7                                 @anaconda
NetworkManager.x86_64                             1:1.8.0-9.el7                                @anaconda
NetworkManager-libnm.x86_64                       1:1.8.0-9.el7                                @anaconda
NetworkManager-team.x86_64                        1:1.8.0-9.el7                                @anaconda
NetworkManager-tui.x86_64                         1:1.8.0-9.el7                                @anaconda
NetworkManager-wifi.x86_64                        1:1.8.0-9.el7                                @anaconda
ntpdate.x86_64                                    4.2.6p5-25.el7.centos.2                      @base
numactl-libs.x86_64                               2.0.9-6.el7_2                                @anaconda
[root@cent01 ~]#
[root@cent01 ~]#
[root@cent01 ~]#
yum erase ntpdate.x86_64  ←パッケージアンインストール
読み込んだプラグイン:fastestmirror
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ ntpdate.x86_64 0:4.2.6p5-25.el7.centos.2 を 削除
--> 依存性解決を終了しました。
依存性を解決しました
=====================================================================================================================
 Package                 アーキテクチャー       バージョン                               リポジトリー           容量
=====================================================================================================================
削除中:
 ntpdate                 x86_64                 4.2.6p5-25.el7.centos.2                  @base                 121 k
トランザクションの要約
=====================================================================================================================
削除  1 パッケージ
インストール容量: 121 k
上記の処理を行います。よろしいでしょうか? [y/N]y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  削除中                  : ntpdate-4.2.6p5-25.el7.centos.2.x86_64                                               1/1
  検証中                  : ntpdate-4.2.6p5-25.el7.centos.2.x86_64                                               1/1
削除しました:
  ntpdate.x86_64 0:4.2.6p5-25.el7.centos.2
完了しました!
[root@cent01 ~]#
[root@cent01 ~]#
[root@cent01 ~]#
yum install ntpdate.x86_64  ←パッケージを再インストール
読み込んだプラグイン:fastestmirror
base                                                                                          | 3.6 kB  00:00:00
extras                                                                                        | 3.4 kB  00:00:00
linux-ha-ja-pacemaker                                                                         | 2.9 kB  00:00:00
updates                                                                                       | 3.4 kB  00:00:00
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ ntpdate.x86_64 0:4.2.6p5-25.el7.centos.2 を インストール
--> 依存性解決を終了しました。
依存性を解決しました
=====================================================================================================================
 Package                 アーキテクチャー       バージョン                                リポジトリー          容量
=====================================================================================================================
インストール中:
 ntpdate                 x86_64                 4.2.6p5-25.el7.centos.2                   base                  86 k
トランザクションの要約
=====================================================================================================================
インストール  1 パッケージ
総ダウンロード容量: 86 k
インストール容量: 121 k
Is this ok [y/d/N]: y
Downloading packages:
ntpdate-4.2.6p5-25.el7.centos.2.x86_64.rpm                                                    |  86 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  インストール中          : ntpdate-4.2.6p5-25.el7.centos.2.x86_64                                               1/1
  検証中                  : ntpdate-4.2.6p5-25.el7.centos.2.x86_64                                               1/1
インストール:
  ntpdate.x86_64 0:4.2.6p5-25.el7.centos.2
完了しました!
[root@cent01 ~]#