3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

インストールされている rpm のパッケージ名のみの一覧を取得する

Posted at
$ rpm -qa --qf "%{NAME}\n"

--qa だとバージョンも表示されて鬱陶しい。

これ結構便利で、同じパッケージをインストールした状態の、別のホストを作るとかが簡単にできる

host-A$ rpm -qa --qf "%{NAME}\n" > pkg.list
host-B# xargs yum -y < pkg.list
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?