鉴于您的问题是有关使用所安装的软件包的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/
rpm
not 安装的软件包是正确的yum
!