yumを使用してバックグラウンドでpackgaesをインストールする

yumを使用してバックグラウンドでpackgaesをインストールする

以下のようにバックグラウンドでyumを介してパッケージをインストールしたいと思います。

yum -y install ntp &

ただし、この例は機能せず、yumインストールはバックグラウンドにインストールされません。yumバックグラウンドでインストールできるようにコマンドを変更するにはどうすればよいですか?ntp

# yum -y install ntp &
[1] 26960
09:03:15 root@ereztest:~ # Loaded plugins: rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ntp.x86_64 0:4.2.6p5-10.el6.1 will be installed
--> Finished Dependency Resolution

ベストアンサー1

-q出力を抑制するには、バックグラウンドジョブのフラグを使用します。

yumマニュアルページから:

-q, --静か

実行時に出力がありません。 -y も使用できます。

おすすめ記事