首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何定位由百胜公司安装的软件包?

如何定位由百胜公司安装的软件包?
EN

Unix & Linux用户
提问于 2018-09-20 12:44:39
回答 1查看 24.3K关注 0票数 6

我使用yum list php-imap列表php:

代码语言:javascript
复制
# yum list php-imap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.zju.edu.cn
 * epel: ftp.cuhk.edu.hk
 * extras: mirrors.zju.edu.cn
 * updates: mirrors.zju.edu.cn
 * webtatic: sp.repo.webtatic.com
Installed Packages
php-imap.x86_64                        5.4.16-7.el7                        @epel

但我怎样才能找到它的位置?我知道我可以使用find / -name php-imap进行搜索,但是它每隔很长一段时间,甚至命令也没有反应性。

在我的CentOS 7中,/var/tmp/是一个空目录。并列出/var/cache/yum/x86_64/7/如下:

代码语言:javascript
复制
base epel extras mysql56-community mysql-connectors-community mysql-tools-community timedhosts timedhosts.txt updates webtatic. 

没有php-imap

EN

回答 1

Unix & Linux用户

发布于 2018-09-20 13:10:57

考虑到您的问题是关于使用yum安装的软件包,那么您必须检查选项infolist的“子标志”。根据百胜的说法:

代码语言:javascript
复制
       info           Display details about a package or group of packages 
       list   Is used to list various information about available packages;

        LIST OPTIONS
       The following are the ways which you can invoke yum in list mode.  Note that all list commands include information on the version of the package.

       OUTPUT

              The format of the output of yum list is:

              name.arch [epoch:]version-release  repo or @installed-from-repo

              Note that if the repo cannot be determined, "installed" is printed instead.

       yum list [all | glob_exp1] [glob_exp2] [...]
              List all available and installed packages.

       yum list available [glob_exp1] [...]
              List all packages in the yum repositories available to be installed.

       yum list updates [glob_exp1] [...]
              List all packages with updates available in the yum repositories.

       yum list installed [glob_exp1] [...]
              List the packages specified by args.  If an argument does not match the name of an available package, it is assumed to be a shell-style glob and any matches are printed.

       yum list extras [glob_exp1] [...]
              List the packages installed on the system that are not available in any yum repository listed in the config file.

       yum list distro-extras [glob_exp1] [...]
              List the packages installed on the system that are not available, by name, in any yum repository listed in the config file.

       yum list obsoletes [glob_exp1] [...]
              List the packages installed on the system that are obsoleted by packages in any yum repository listed in the config file.

       yum list recent
              List packages recently added into the repositories. This is often not helpful, but what you may really want to use is "yum list-updateinfo new" from the security yum plugin.

此外,安装的包的路径取决于系统设置:

在Centos7中

代码语言:javascript
复制
/var/tmp/yum-root-xxxxx/ 

代码语言:javascript
复制
/var/tmp/yum-username-xxxxx/

代码语言:javascript
复制
/var/cache/yum/x86_64/7/program_name/packages/

在RHEL中,文件存储在

代码语言:javascript
复制
/var/cache/yum/x86_64/6Server/rhel-6-server-rpms/packages/
票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/470266

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档