S
S
Sheryorg2015-07-14 11:39:13
CentOS
Sheryorg, 2015-07-14 11:39:13

How to get a list of packages installed in centos?

Good afternoon.
How can I get a list of packages installed in centos without taking into account the dependencies of these packages? (rpm -qa lists all packages installed on the system).
As, for example, it is done in gentoo in the world. Having this file and a couple more configs, you can deploy a copy of the working system with one command.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Fedoseev, 2015-07-14
@martin74ua

and why rpm -qa is not suitable??
rpm -qa > rpm.list
Install
yum install `cat rpm.list`

Y
Yuri, 2015-07-15
@Ba1t

I managed to solve the problem in this way:
We get a list of installed packages without versions for the listed architectures.
Not an expert on regular expressions, don't kick too hard.
Ruslan Fedoseev suggested the correct option above
rpm -qa --qf "%{NAME}\n"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question