问题标签 [dnf]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
183 浏览

java - 在哪里可以找到已安装的 javadoc

在我的 Fedora 机器上,我做了:

我在哪里可以找到我刚刚下载的 javadoc?

0 投票
2 回答
917 浏览

rpm - RPM GPG key import from an RPM post install script

I have to create 3 RPMs like this:

  1. key.rpm : Does an rpm import of the RPM GPG public key(/etc/sw-key/gpg.key) in it's post-install script.
  2. software1.rpm : Requires key.rpm and signed by /etc/sw-key/gpg.key's private key.
  3. software2.rpm : Requires key.rpm and signed by /etc/sw-key/gpg.key's private key.

The intention behind the above is, I want to install all the 3 RPMs at once using the DNF with gpgcheck enabled. The dependancy created above, would allow the key.rpm to get installed first and then followed by the installation of the remaining 2 RPMs. But, the installation of the key.rpm itself fails because I am doing an "rpm --import" in it's post-install script. The rpm import is failing to acquire a transaction lock. I understand that the post-install script is called within the context of the main RPM command and hence the rpm import is failing while acquiring the lock.

Is there any other way to achieve what I am trying to do above? I want to install all the signed RPMs in a single DNF command, with one among those RPMs carrying and installing the RPM GPG key needed by others.

0 投票
1 回答
417 浏览

configuration - 为什么 dnf config-manager --save 不起作用?

我想使用dnf config-manager为我的系统添加一个 rpm 存储库:

为什么生成的example.com_rpm-repo.repo文件不包含指定的选项:gpgcheck=0

环境:

0 投票
0 回答
139 浏览

gdb - fedora 中的 debuginfo 处理,如何删除 debuginfo

我可以简单地为几个包安装调试信息,例如:

但我没有看到任何删除调试信息的命令。

是否有任何可以删除调试信息的 dnf 命令?

我知道只要知道名称,我就可以使用 dnf 手动删除任何包。但是我无法自动找出软件包和调试信息与该软件包之间的关系以进行删除/卸载。

有什么诀窍可以完成这项工作吗?

0 投票
1 回答
153 浏览

java - 如何在 Java 中获取 var/lib/rpm/packages

我正在使用 Java Oracle NoSQL 数据库服务器 - com.sleepycat.je

我尝试获取 Berkely DB 内容 - Centos8 docker image 中的 RPM Packages DB

但我收到以下错误:

0 投票
3 回答
26952 浏览

installation - dnf坏了:所有镜子都试过了

我不知道如何描述我的问题,因为我不明白为什么会发生......当我进入

它返回给我这个

很明显,Tor 与那个烂摊子有关,但我不知道为什么。

我什么都没试过,因为我害怕做错事。我在 Fedora 30 上。(英式长棍面包)

0 投票
10 回答
146927 浏览

centos - yum/dnf 错误:无法为 repo 下载元数据

在我的 CentOS 8 服务器上,许多命令都失败并出现以下错误dnfyum

无法为 repo 下载元数据

这似乎仅适用于涉及 https 连接的存储库,例如:

我曾经wget测试到这些站点的连接性,它是成功的,例如wget https://mirrors.fedoraproject.org成功。

但是,各种dnforyum命令失败:

我该如何解决这个问题?

0 投票
1 回答
1027 浏览

bash - Fedora 容器没有可用的“查找”命令

我已经建立了一个容器:

到目前为止,我使用过的每个 Linux 发行版都已find预先安装,所以我不完全确定在这里做什么。

快速的谷歌搜索会产生关于如何使用 find的结果,或者为什么在脚本中使用时找不到它bash等。但无论我使用什么关键字,我似乎都找不到以前遇到过这个问题的人.

dnf search find没有显示任何结果,但也许它使用了另一个名称?还是我必须自己编译?

0 投票
1 回答
143 浏览

ansible - yum 和 dnf 安装/更新需要 5 分钟才能在 RHEL8 上启动

如果我在最近更新的 RHEL8 上以 root 身份运行 yum 或 dnf ,它可以顺利运行。一旦我尝试使用 sudo 用户(添加到 wheel 组)运行它,最多需要 5 分钟。

做一个百胜清洁并没有帮助eiher。

我通常使用 Ansible 从远程主机运行更新,但 Ansible 在尝试运行 yum 模块几分钟后断开连接。

我将 SELinux 设置为禁用,以防万一,并检查了 dnf.conf 中的代理设置——一切看起来都很好。非常感谢任何输入。

这是 dnf.log

0 投票
1 回答
105 浏览

yum - 如何创建使用 setcap 并在 dnf/yum (fedora/redhat) 和 zypper (openSuse) 上工作的 RPM 包

我正在为需要setcap设置功能的命令的服务开发 RPM 包。使用目的setcap是监听1024以下的端口号。

RPM 包有一个 'Requires' 部分,它是以逗号分隔的其他必需包的列表,理论上我可以使用它来确保目标系统安装所需的包。

现在问题来了:

  • setcap可用于包中的 Fedora 和包libcap中的 openSUSE libcap-progs

  • 该软件包libcap在 openSUSElibcap-progs上不可用,在 Fedora 上也不可用。

是否可以创建一个setcap在 Fedora 和 openSUSE 上安装和工作的单个 RPM 包?