Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only install fuse-sshfs from epel #3096

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented Jan 8, 2025

The other packages are available in the system distribution.

The extra packages (from EPEL) should not be used for them.

Note: Fedora EPEL means "Extra Packages for Enterprise Linux"

For CentOS Stream, the repository is actually called "EPEL-Next"

The regular "EPEL" repository was used for CentOS Linux only.

But we won't bother with that, until it is actually needed by Lima...

In RHEL 8 sshfs was available in PowerTools, so support that as well.

Closes #2979


https://docs.fedoraproject.org/en-US/epel/

EPEL-Next is not a complete rebuild of all the EPEL packages, but only those packages that need to be rebuilt to install on CentOS Stream. The EPEL-Next repo is meant to be layered on top of the regular EPEL repository.

@afbjorklund
Copy link
Member Author

afbjorklund commented Jan 8, 2025

The installation of epel-release-next was actually excluded by install_weak_deps=False

Requires:       redhat-release >=  %{version}
# epel-release is only for enterprise linux, not fedora
Conflicts:      fedora-release
# crb needs config-manager to run
# But only recommend it, incase people do not need crb
Recommends:     dnf-command(config-manager)
%if %{with next}
Recommends:     (epel-next-release if centos-stream-release)
%endif

So if you do a dnf upgrade --enablerepo=epel, then it will be included in the updates:

Installing weak dependencies:
 epel-next-release       noarch     9-9.el9                 epel          7.9 k

Then you can choose to disable it, or enable both of them (as epel-next requires epel)

yum-config-manager --disable epel-next

yum-config-manager --enable epel

But this only happens on CentOS Stream (i.e. Next), not on Enterprise Linux (e.g. AlmaLinux)

Since it is stable, it only has epel-release (released packages) but not epel-next-release.

https://docs.fedoraproject.org/en-US/epel/epel-about-next/

@afbjorklund

This comment was marked as off-topic.

@AkihiroSuda
Copy link
Member

Needs rebase

The other packages are available in the system distribution.

The extra packages (from EPEL) should not be used for them.

Signed-off-by: Anders F Björklund <[email protected]>
@afbjorklund
Copy link
Member Author

afbjorklund commented Jan 10, 2025

Before (iptables-legacy)

[   59.672678] cloud-init[1098]: Dependencies resolved.
[   59.673550] cloud-init[1098]: ================================================================================
[   59.674578] cloud-init[1098]:  Package                   Arch        Version             Repository      Size
[   59.675916] cloud-init[1098]: ================================================================================
[   59.677482] cloud-init[1098]: Installing:
[   59.678146] cloud-init[1098]:  fuse-sshfs                x86_64      3.7.3-1.el9         epel            61 k
[   59.679457] cloud-init[1098]:  fuse3                     x86_64      3.10.2-9.el9        appstream       53 k
[   59.680763] cloud-init[1098]:  iptables-legacy           x86_64      1.8.10-4.1.el9      epel            49 k
[   59.682068] cloud-init[1098]: Installing dependencies:
[   59.682789] cloud-init[1098]:  fuse-common               x86_64      3.10.2-9.el9        baseos         7.2 k
[   59.684092] cloud-init[1098]:  fuse3-libs                x86_64      3.10.2-9.el9        appstream       90 k
[   59.685416] cloud-init[1098]:  iptables-legacy-libs      x86_64      1.8.10-4.1.el9      epel            37 k
[   59.686741] cloud-init[1098]: Transaction Summary
[   59.687385] cloud-init[1098]: ================================================================================
[   59.688668] cloud-init[1098]: Install  6 Packages
[   59.689316] cloud-init[1098]: Total download size: 297 k
[   59.690017] cloud-init[1098]: Installed size: 704 k

After (iptables-nft)

[   18.242982] cloud-init[1098]: Dependencies resolved.
[   18.243870] cloud-init[1098]: ================================================================================
[   18.244889] cloud-init[1098]:  Package             Architecture  Version               Repository        Size
[   18.245927] cloud-init[1098]: ================================================================================
[   18.247250] cloud-init[1098]: Installing:
[   18.247657] cloud-init[1098]:  fuse3               x86_64        3.10.2-9.el9          appstream         53 k
[   18.248686] cloud-init[1098]:  iptables-nft        x86_64        1.8.10-4.el9_4        baseos           186 k
[   18.249603] cloud-init[1098]: Installing dependencies:
[   18.250108] cloud-init[1098]:  fuse-common         x86_64        3.10.2-9.el9          baseos           7.2 k
[   18.250994] cloud-init[1098]:  fuse3-libs          x86_64        3.10.2-9.el9          appstream         90 k
[   18.252162] cloud-init[1098]:  libnftnl            x86_64        1.2.6-4.el9_4         baseos            87 k
[   18.253282] cloud-init[1098]: Transaction Summary
[   18.253813] cloud-init[1098]: ================================================================================
[   18.254808] cloud-init[1098]: Install  5 Packages
[   18.255300] cloud-init[1098]: Total download size: 423 k
[   18.255800] cloud-init[1098]: Installed size: 1.1 M
[   30.128085] cloud-init[1098]: Dependencies resolved.
[   30.128604] cloud-init[1098]: ================================================================================
[   30.128669] cloud-init[1098]:  Package             Architecture    Version                Repository     Size
[   30.128943] cloud-init[1098]: ================================================================================
[   30.129216] cloud-init[1098]: Installing:
[   30.129481] cloud-init[1098]:  fuse-sshfs          x86_64          3.7.3-1.el9            epel           61 k
[   30.130257] cloud-init[1098]: Transaction Summary
[   30.130858] cloud-init[1098]: ================================================================================
[   30.131314] cloud-init[1098]: Install  1 Package
[   30.131544] cloud-init[1098]: Total download size: 61 k
[   30.131748] cloud-init[1098]: Installed size: 125 k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

centos-stream-9: sudo dnf upgrade fails (due to iptables-legacy and iptables-libs conflicts)
2 participants