LoginSignup
0
0

More than 3 years have passed since last update.

yum インストールリストの json形式出力コマンド

Posted at
yum list installed | tail -n +2 | sed -E 's/ +/ /g' | sed -E 's/([^ ]*) ([^ ]*) ([^ ]*)/{"name":"\1","version":"\2","repo":"\3"},/g' | tr -d '\n' | sed -E 's/(.*),/[\1]/g'
0
0
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
0
0