yum 列出软件包版本_如何使用Yum命令列出所有存储库软件包

yum 列出软件包版本

yum 列出软件包版本

I have added a new repository into my repositories and I want to list all packages. Find the total count of packages and filter some of the packages I am interested in. And now we can start the process.

我已经在我的存储库中添加了一个新的存储库,并且我想列出所有软件包。 查找软件包总数,并过滤一些我感兴趣的软件包。现在我们可以开始该过程。

列出所有存储库软件包 (List All Repository Packages)

yum command have list option which will list all packages from currently available repositories. This will check all currently enabled repositories.

yum命令具有list选项,它将列出当前可用存储库中的所有软件包。 这将检查所有当前启用的存储库。

$ yum list
List All Repository Packages
List All Repository Packages
列出所有存储库软件包

We have listed all packages. As we see first installed packages are listed . Installed packaged are listed as installed if the packages are not installed their repository is written like @base . We can see that there is also package versions which will print current package version with the repository version like el7 .

我们已列出所有软件包。 如我们所见,首先列出了已安装的软件包。 如果未安装软件包,则已安装的软件包将列为安装。它们的存储库写为@base 。 我们可以看到还有一些软件包版本,这些版本将使用存储库版本(如el7打印当前软件包版本。

筛选列出的包裹 (Filter Listed Packages)

While listing packages we may need to specific packages. We will get the help of grep command while using yum list . We will grep packages which name have stack .

在列出软件包时,我们可能需要特定的软件包。 使用yum list我们将获得grep命令的帮助。 我们将使用名称为stack grep软件包。

$ yum list | grep stack
Filter Packages
Filter Packages
过滤包


    本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

    相关文章

    立即
    投稿

    微信公众账号

    微信扫一扫加关注

    返回
    顶部