After upgrading Fedora 40 to 41, docker-compose was no longer available.
When I try to re-install with sudo dnf install docker-compose, it raises the following conflicts:
- installed package docker-compose-plugin-2.29.7-1.fc41.x86_64 conflicts with docker-compose-plugin provided by docker-compose-2.29.7-1.fc41.x86_64 from fedora - package docker-compose-2.29.7-1.fc41.x86_64 from fedora conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.2-1.fc41.x86_64 from docker-ce-stable - package docker-compose-2.29.7-1.fc41.x86_64 from fedora conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.6-1.fc41.x86_64 from docker-ce-stable - package docker-compose-2.29.7-1.fc41.x86_64 from fedora conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.7-1.fc41.x86_64 from docker-ce-stable - installed package docker-compose-plugin-2.29.7-1.fc41.x86_64 conflicts with docker-compose-plugin provided by docker-compose-2.29.7-3.fc41.x86_64 from updates - package docker-compose-2.29.7-3.fc41.x86_64 from updates conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.2-1.fc41.x86_64 from docker-ce-stable - package docker-compose-2.29.7-3.fc41.x86_64 from updates conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.6-1.fc41.x86_64 from docker-ce-stable - package docker-compose-2.29.7-3.fc41.x86_64 from updates conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.7-1.fc41.x86_64 from docker-ce-stable Running the command line with --allowerasing or --skip-broken does not work either.
I also tried (but to no avail):
- removing/re-installing
docker-compose-plugin - removing/re-installing Docker as per the documentation (https://docs.docker.com/engine/install/fedora)
What more can I try to get docker-compose work again?
docker-ce stableafter removing `docker-compose-plugin, then try reinstalling.docker-compose-pluginis successfully reinstalled from Fedora 41 Updates but then I am asked to installdocker-compose-switchwhich in turn fails due to conflicts betweenpodman-dockeranddocker-ce-cli.docker-ce-stabledisabled, remove bothpodman-dockeranddocker-ce-cli. After that I would attempt to installdocker-compose-switchwhich will pull in the required dependencies from Updates. If you continue to receive conflicts you need to remove every package installed fromdocker-ce-stableThis is about to have enough meat to turn into an answer. The idea here is it is ok to remove packages as yu are going to end up reinstalling the packages again.