Mihamina Rakotomandimby
2013-Aug-29 16:39 UTC
[CentOS] list installed packaged, without formatting overhead
Hi all,
In order to make the same installation on two servers where all was
installed via yum/rpm, I want to dump a list of all installed packages
on the first server.
My problem is if I just "yum list installed", some weird formatting
prints packages information on 2 lines...
I have to
# yum list installed | awk '{print $1}' \
| grep -v '@' | grep -vE '^[0-9]'
Is there a cleaner way?
# rpm -aq
Is not OK because it includes version in a way it's more hard to parse
just the package name.
Thank you.
--
RMA.
Frank Cox
2013-Aug-29 16:42 UTC
[CentOS] list installed packaged, without formatting overhead
On Thu, 29 Aug 2013 19:39:36 +0300 Mihamina Rakotomandimby wrote:> Is there a cleaner way?rpm -qa --qf "%{NAME}\n" rpm -qa --qf "%{NAME}.%{ARCH}\n" -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com