{"id":6016,"date":"2016-07-13T20:31:58","date_gmt":"2016-07-13T12:31:58","guid":{"rendered":"http:\/\/rmohan.com\/?p=6016"},"modified":"2016-07-13T20:31:58","modified_gmt":"2016-07-13T12:31:58","slug":"output-from-rpm-qa-how-to-extract-only-the-name-of-the-package","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6016","title":{"rendered":"Output from rpm -qa, how to extract only the name of the package?"},"content":{"rendered":"<p>Output from rpm -qa, how to extract only the name of the package? <\/p>\n<p>If you need to migrate to a new computer and want to install the same packages that were on your old computer on the new one, the following pipes all the packages into a list that you can then use to install on the new computer.<\/p>\n<p>rpm -qa &#8211;qf &#8220;%{NAME}\\n&#8221; > filelist.txt<\/p>\n<p> Then to install the packages<\/p>\n<p> yum -y install  `cat filelist.txt`<br \/>\n or<br \/>\nyum -y install $(cat filelist.txt) <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Output from rpm -qa, how to extract only the name of the package? <\/p>\n<p>If you need to migrate to a new computer and want to install the same packages that were on your old computer on the new one, the following pipes all the packages into a list that you can then use to [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6016"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6016"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6016\/revisions"}],"predecessor-version":[{"id":6017,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6016\/revisions\/6017"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}