我使用yum list php-imap列表php:
# 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/如下:
base epel extras mysql56-community mysql-connectors-community mysql-tools-community timedhosts timedhosts.txt updates webtatic. 没有php-imap。
发布于 2018-09-20 13:10:57
考虑到您的问题是关于使用yum安装的软件包,那么您必须检查选项info和list的“子标志”。根据百胜的说法:
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中
/var/tmp/yum-root-xxxxx/ 或
/var/tmp/yum-username-xxxxx/或
/var/cache/yum/x86_64/7/program_name/packages/在RHEL中,文件存储在
/var/cache/yum/x86_64/6Server/rhel-6-server-rpms/packages/https://unix.stackexchange.com/questions/470266
复制相似问题