首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >显示已安装的包版本的yum更新

显示已安装的包版本的yum更新
EN

Stack Overflow用户
提问于 2021-02-10 14:55:01
回答 1查看 73关注 0票数 0

我的系统有一个已经安装的libmaxminddb-1.2.0-10.el8.rpm包。但是当我运行yum update时--假设同样的包要求重新安装,你知道为什么会发生这种情况吗?我该如何避免呢?谢谢

代码语言:javascript
复制
[root@vm x86_64]# ls | grep libmax
libmaxminddb-1.2.0-10.el8.rpm

[root@vm~]# yum update --assumeno
Repository 'My-Repository' is missing name in configuration, using id.
Repository 'updates' is missing name in configuration, using id.
Last metadata expiration check: 0:14:11 ago on Thu 04 Feb 2021 06:16:35 PM UTC.
Dependencies resolved.
=====================================================================================================================================================================================================
Package                                         Architecture                              Version                                           Repository                                         Size
=====================================================================================================================================================================================================
Upgrading:
libmaxminddb                                    x86_64                                    1.2.0-10.el8                                      My-Repository                                     33 k

Transaction Summary
=====================================================================================================================================================================================================
Upgrade  1 Package

Total download size: 33 k
Operation aborted.
EN

回答 1

Stack Overflow用户

发布于 2021-02-18 03:21:17

也许新的包有相同的名称,版本,发布和拱门,但不同的时代(这将是相当丑陋的包装观点)?试着比较你所拥有的和可用的。

要查看已安装包的详细信息(在本例中我使用的是bash):

代码语言:javascript
复制
# rpm -q --queryformat "Epoch: %{EPOCH}\n" bash
Epoch: (none)
# rpm -q --info bash
Name        : bash
Version     : 5.0.17
Release     : 2.fc33
Architecture: x86_64
Install Date: Tue 20 Oct 2020 01:36:17 AM CEST
Group       : Unspecified
Size        : 7709818
License     : GPLv3+
Signature   : RSA/SHA256, Tue 28 Jul 2020 12:10:09 AM CEST, Key ID 49fd77499570ff31
Source RPM  : bash-5.0.17-2.fc33.src.rpm
Build Date  : Mon 27 Jul 2020 03:17:35 PM CEST
Build Host  : buildhw-x86-14.iad2.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://www.gnu.org/software/bash
Bug URL     : https://bugz.fedoraproject.org/bash
Summary     : The GNU Bourne Again shell
Description :
The GNU Bourne Again shell (Bash) is a shell or command language
interpreter that is compatible with the Bourne shell (sh). Bash
incorporates useful features from the Korn shell (ksh) and the C shell
(csh). Most sh scripts can be run by bash without modification.

然后在可用的包上获得相同的信息:

代码语言:javascript
复制
# yum download bash
# rpm -qp bash-5.0.17-2.fc33.x86_64.rpm --queryformat "Epoch: %{EPOCH}\n"
Epoch: (none)
# rpm -qp bash-5.0.17-2.fc33.x86_64.rpm --info
Name        : bash
Version     : 5.0.17
Release     : 2.fc33
Architecture: x86_64
Install Date: (not installed)
Group       : Unspecified
Size        : 7709818
License     : GPLv3+
Signature   : RSA/SHA256, Tue 28 Jul 2020 12:10:09 AM CEST, Key ID 49fd77499570ff31
Source RPM  : bash-5.0.17-2.fc33.src.rpm
Build Date  : Mon 27 Jul 2020 03:17:35 PM CEST
Build Host  : buildhw-x86-14.iad2.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://www.gnu.org/software/bash
Bug URL     : https://bugz.fedoraproject.org/bash
Summary     : The GNU Bourne Again shell
Description :
The GNU Bourne Again shell (Bash) is a shell or command language
interpreter that is compatible with the Bourne shell (sh). Bash
incorporates useful features from the Korn shell (ksh) and the C shell
(csh). Most sh scripts can be run by bash without modification.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66132219

复制
相关文章

相似问题

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