centos - 如何使用 yum 从给定的 repo 中列出已安装的包

标签 centos fedora yum

<分区>


想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。

关闭 11 年前

我想使用 yum 从给定的 repo 列出我在系统上安装的所有软件包。通常我会使用 yum list installed | grep“某物”。但现在我面临一个问题。我感兴趣的 repo 协议(protocol)没有让我 grep 的“东西”。该 repo 协议(protocol)中的包没有任何显着特征。我如何列出它们?

我查看了 yum 手册页,但没有找到任何东西。我想知道我是否可以使用其他命令。

最佳答案

尝试

yum list installed | grep reponame

在我的一台服务器上:

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

有效。

关于centos - 如何使用 yum 从给定的 repo 中列出已安装的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4609933/

上一篇:apache - 如何查看完整的 httpd 配置?

下一篇:gdb - 缺少单独的调试信息,使用 : debuginfo-install glibc-2. 12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686

相关文章:

java - Yum 没有可用的包 Java JDK

tomcat - 如何在端口 80 上运行 nexus sonatype?

python - matplotlib mathtext 的奇怪输出

linux - 如何仅在远程登录到 linux 时运行命令

linux - Http Live Streaming - 在 Linux 上分割 mp3

android - 如何从 Android 应用程序向 Mikrotik 发送登录凭据

c - 与 SCTP 建立 M3UA 关联

yum - 显示 yum 优先级插件排除的软件包

centos - yum 没有足够的缓存数据来继续。在这一点上,yum 唯一能做的安全的事情就是失败

r - 在标准或给定位置找不到 proj_api.h