[CentOS] list installed packaged, without formatting overhead
Mihamina Rakotomandimby
mihamina at rktmb.orgThu Aug 29 16:39:36 UTC 2013
- Previous message: [CentOS] CentOS-announce Digest, Vol 102, Issue 16
- Next message: [CentOS] list installed packaged, without formatting overhead
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [CentOS] CentOS-announce Digest, Vol 102, Issue 16
- Next message: [CentOS] list installed packaged, without formatting overhead
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list