Cómo listar paquetes instalados desde un repositorio dado usando yum [cerrado]


Quiero listar todos los paquetes que he instalado en un sistema desde un repositorio dado usando yum. Por lo general, para hacer esto uso yum list installed | grep "something". Pero ahora me enfrento a un problema. El repositorio en el que estoy interesado no tiene ese "algo" para mí. Los paquetes de ese repositorio no tienen ninguna característica distintiva. ¿Cómo puedo enumerarlos?

Miré a través de las páginas man de yum pero no encontré nada. Me pregunto si hay otros comandos que pueda usar.

Author: CharlesB, 2011-01-06

2 answers

En las versiones más recientes de yum, esta información se almacena en el "yumdb" cuando se instala el paquete. Esta es la única forma 100% precisa de obtener la información, y puede usar:

yumdb search from_repo repoid

(o repoquery y grep don no grep salida yum). Sin embargo, el comando "find-repos-of-install" fue parte de yum-utils por un tiempo que hizo la mejor suposición sin esa información:

Http://james.fedorapeople.org/yum/commands/find-repos-of-install.py

Como dijo floyd, un muchos repositorios. incluye una etiqueta única "dist" en su lanzamiento, y puedes buscarla ... sin embargo, por lo que dijiste, supongo que no es el caso para ti.

 39
Author: James Antill,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-03-11 17:44:25

Intenta

yum list installed | grep reponame

En uno de mis servidores:

yum list installed | grep remi
ImageMagick2.x86_64                       6.6.5.10-1.el5.remi          installed
memcache.x86_64                          1.4.5-2.el5.remi             installed
mysql.x86_64                              5.1.54-1.el5.remi            installed
mysql-devel.x86_64                        5.1.54-1.el5.remi            installed
mysql-libs.x86_64                         5.1.54-1.el5.remi            installed
mysql-server.x86_64                       5.1.54-1.el5.remi            installed
mysqlclient15.x86_64                      5.0.67-1.el5.remi            installed
php.x86_64                                5.3.5-1.el5.remi             installed
php-cli.x86_64                            5.3.5-1.el5.remi             installed
php-common.x86_64                         5.3.5-1.el5.remi             installed
php-domxml-php4-php5.noarch               1.21.2-1.el5.remi            installed
php-fpm.x86_64                            5.3.5-1.el5.remi             installed
php-gd.x86_64                             5.3.5-1.el5.remi             installed
php-mbstring.x86_64                       5.3.5-1.el5.remi             installed
php-mcrypt.x86_64                         5.3.5-1.el5.remi             installed
php-mysql.x86_64                          5.3.5-1.el5.remi             installed
php-pdo.x86_64                            5.3.5-1.el5.remi             installed
php-pear.noarch                           1:1.9.1-6.el5.remi           installed
php-pecl-apc.x86_64                       3.1.6-1.el5.remi             installed
php-pecl-imagick.x86_64                   3.0.1-1.el5.remi.1           installed
php-pecl-memcache.x86_64                  3.0.5-1.el5.remi             installed
php-pecl-xdebug.x86_64                    2.1.0-1.el5.remi             installed
php-soap.x86_64                           5.3.5-1.el5.remi             installed
php-xml.x86_64                            5.3.5-1.el5.remi             installed
remi-release.noarch                       5-8.el5.remi                 installed

Funciona.

 63
Author: floyd,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-01-11 06:33:08