Bug 1576921
| Summary: | RFE: dnf does not "remember" --forcearch= | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zbigniew Jędrzejewski-Szmek <zbyszek> |
| Component: | dnf | Assignee: | Jaroslav Mracek <jmracek> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 28 | CC: | dmach, jmracek, mhatina, packaging-team-maint, rpm-software-management, vmukhame |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-06-28 08:13:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
I created a patch that enhance a documentation https://github.com/rpm-software-management/dnf/pull/1089 Thanks, that explains that I'm missing an 'arch' setting. Do you think it would be possible for dnf to add 'arch' automatically to /etc/dnf/dnf.conf? If you will add into dnf.conf arch=i686 ignorearch-True it will work like you expect. DNF cannot do it automatically. The issue is solved by dnf-3.0.1-1 that was released into rawhide. |
Description of problem: I used dnf --forcearch=i686 to install a 32-bit container into a directory: sudo dnf -y --releasever=28 --installroot=/var/lib/machines/f28-32 \ --disablerepo='*' --enablerepo=fedora --enablerepo=updates install \ systemd passwd dnf fedora-release vim-minimal --forcearch=i686 This works great, but then when I run dnf operations *inside* the container, it always wants to install their amd64 versions: [root@f28-32 ~]# dnf install htop Last metadata expiration check: 0:20:05 ago on Thu May 10 19:29:11 2018. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: htop x86_64 2.1.0-1.fc28 fedora 108 k Installing dependencies: glibc x86_64 2.27-8.fc28 fedora 3.6 M ncurses-libs x86_64 6.1-4.20180224.fc28 fedora 334 k It would be great if dnf would somehow store the information that in made the initial creation of this installroot with --forcearch, so that dnf running inside that installroot would default to the right architecture. Version-Release number of selected component (if applicable): dnf-2.7.5-8.fc28.noarch (outside) dnf-2.7.5-12.fc28.noarch (inside)