linux中如何使用yum命令查看已安装的软件包(linux,yum,开发技术)

时间:2024-04-30 09:00:23 作者 : 石家庄SEO 分类 : 开发技术
  • TAG :

yum是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基於RPM包管理可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。

linux中如何使用yum命令查看已安装的软件包

列出所有已安装的软件包

yumlistinstalled

yum针对软件包操作常用命令:

1.使用yum查找软件包命令:yumsearch2.列出所有可安装的软件包命令:yumlist3.列出所有可更新的软件包命令:yumlistupdates4.列出所有已安装的软件包命令:yumlistinstalled

yum 语法

yum[options][command][package...]
  • options 可选,选项包括 -h(帮助),-y(当安装过程提示选择全部为”yes”),-q(不显示安装的过程)等等。
  • command 要进行的操作。
  • package 操作的对象。

其它的例子就不列举了,这里说一下查看yum安装了哪些软件包

查看 yum 已安装 php 的包

yumlistinstalledphpLoadedplugins:fastestmirrorLoadingmirrorspeedsfromcachedhostfile*epel:mirrors.kernel.org*remi-safe:mirrors.uni-ruse.bgInstalledPackagesphp.x86_645.6.40-14.el7.remi

查看 yum 已安装 php 相关的包

yumlistinstalledphp*Loadedplugins:fastestmirrorLoadingmirrorspeedsfromcachedhostfile*epel:mirrors.kernel.org*remi-safe:mirror.team-cymru.comInstalledPackagesphp.x86_645.6.40-14.el7.remiphp-cli.x86_645.6.40-14.el7.remiphp-common.x86_645.6.40-14.el7.remiphp-devel.x86_645.6.40-14.el7.remiphp-doctrine-instantiator.noarch1.0.5-1.el7.remiphp-fedora-autoloader.noarch1.0.0-1.el7.remiphp-mbstring.x86_645.6.40-14.el7.remiphp-mcrypt.x86_645.6.40-14.el7.remiphp-myclabs-deep-copy.noarch1.7.0-1.el7.remiphp-mysqlnd.x86_645.6.40-14.el7.remiphp-opcache.x86_645.6.40-14.el7.remiphp-pdo.x86_645.6.40-14.el7.remiphp-pear.noarch1:1.10.10-4.el7.remiphp-pecl-jsonc.x86_641.3.10-2.el7.remi.5.6php-pecl-jsonc-devel.x86_641.3.10-2.el7.remi.5.6php-pecl-xdebug.x86_642.5.5-1.el7.remi.5.6php-pecl-xhprof.x86_640.9.4-4.el7.remi.5.6php-pecl-zip.x86_641.15.5-1.el7.remi.5.6php-phpdocumentor-reflection-common.noarch1.0.1-1.el7.remiphp-phpdocumentor-reflection-docblock.noarch3.2.2-4.el7.remiphp-phpdocumentor-type-resolver.noarch0.4.0-5.el7.remiphp-phpspec-prophecy.noarch1.9.0-1.el7.remiphp-phpunit-File-Iterator.noarch1.4.5-1.el7.remiphp-phpunit-PHP-CodeCoverage.noarch4.0.8-4.el7.remiphp-phpunit-PHP-Invoker.noarch1.1.4-5.el7.remiphp-phpunit-PHP-Timer.noarch1.0.9-1.el7.remiphp-phpunit-PHP-TokenStream.noarch1:1.4.12-1.el7.remiphp-phpunit-PHPUnit.noarch5.7.27-6.el7.remiphp-phpunit-PHPUnit-MockObject.noarch3.4.4-5.el7.remiphp-phpunit-Text-Template.noarch1.2.1-1.el7.remiphp-phpunit-Version.noarch2.0.1-1.el7.remiphp-phpunit-comparator.noarch1.2.4-4.el7.remiphp-phpunit-diff.noarch1.4.3-6.el7.remiphp-phpunit-environment.noarch2.0.0-1.el7.remiphp-phpunit-exporter.noarch2.0.0-4.el7.remiphp-process.x86_645.6.40-14.el7.remiphp-sebastian-code-unit-reverse-lookup.noarch1.0.1-1.el7.remiphp-sebastian-global-state.noarch1.1.1-1.el7.remiphp-sebastian-object-enumerator.noarch2.0.1-2.el7.remiphp-sebastian-recursion-context.noarch2.0.0-1.el7.remiphp-sebastian-resource-operations.noarch1.0.0-2.el7.remiphp-soap.x86_645.6.40-14.el7.remiphp-symfony-class-loader.noarch2.8.52-2.el7.remiphp-symfony-common.noarch2.8.52-2.el7.remiphp-symfony-yaml.noarch2.8.52-2.el7.remiphp-webmozart-assert.noarch1.4.0-1.el7.remiphp-xml.x86_645.6.40-14.el7.remi
 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:linux中如何使用yum命令查看已安装的软件包的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:如何使用matplotlib库实现图形局部数据放大显示下一篇:

7 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18