Linux 我如何列出我在centos中安装的所有没有依赖项的软件包

Linux 我如何列出我在centos中安装的所有没有依赖项的软件包,linux,centos,yum,Linux,Centos,Yum,如果我执行 yum list installed然后我得到了所有的包,包括依赖项包 但是我想通过键入command来查找那些由我手动安装的包 yum安装pkgname 是否可以在centos中运行此命令,通过命令行查看您的历史记录: yum history info '*'|grep 'Command Line' 例如: $ yum history info '*'|grep 'Command Line' Command Line : install xterm Command Line

如果我执行

yum list installed
然后我得到了所有的包,包括依赖项包

但是我想通过键入command来查找那些由我手动安装的包

yum安装pkgname


是否可以在centos中运行此命令,通过命令行查看您的历史记录:

yum history info '*'|grep 'Command Line'
例如:

$ yum history info '*'|grep 'Command Line'
Command Line   : install xterm
Command Line   : install xclock
...

不使用grep运行,并使用less查看日期等。

运行此命令可使用命令行查看历史记录:

yum history info '*'|grep 'Command Line'
例如:

$ yum history info '*'|grep 'Command Line'
Command Line   : install xterm
Command Line   : install xclock
...
不使用grep运行,使用less查看日期等