How to specify installed packages from a specific repo using yum

I want to list all the packages that I installed on the system from a specific repo using yum. I usually use yum list installed | grep "something" yum list installed | grep "something" . But now I am facing a problem. The repo that interests me does not have for me what I need. Packages from this repo do not have any distinguishing characteristics. How to list them?

I looked at the pages of yum man, but did not find anything. I wonder if there are other commands that I could use.

+55
centos fedora yum
Jan 05 2018-11-21T00:
source share
2 answers

In newer versions of yum, this information is stored in "yumdb" when the package is installed. This is the only 100% accurate way to get information, and you can use:

 yumdb search from_repo repoid 

(or repoquery and grep - do not print grep yum). However, the find-repos-of-install command was part of yum-utils for a while, which was best guessed without this information:

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

As Floyd said, a lot of repos. include the unique "dist" tag in their release, and you can search for it ... however, from what you said, I think this is not the case for you?

+34
Feb 08 '11 at 15:31
source share

Try

  yum list installed |  grep reponame 

On one of my servers:

  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

He works.

+62
Jan 11 2018-11-11T00:
source share



All Articles