Giter VIP home page Giter VIP logo

Comments (4)

m-blaha avatar m-blaha commented on August 16, 2024

This is tricky. You are right that the download command does not support the --skip-broken switch. But the problem is, that to resolve all curl package dependencies we basically "pretend" we have an empty system, try to install the curl package there, and then download every package in the transaction. But if you add --exclude=basesystem, transaction resolution fails (because basesystem is one of curl dependencies). Unfortunately, we do not get something like a "partial transaction" from the solver; we don't get any transaction at all. Which in turn means dnf does not know what to download.

So the basic --skip-broken support for the download command might mean, that instead of raising an error, the curl package (and it's entire dependency tree) would be skipped from downloading. Which is not exactly what you need, I guess.

from dnf-plugins-core.

mtalexan avatar mtalexan commented on August 16, 2024

I haven't used it during a regular install, but does the --skip-broken indicate that any trees missing dependencies should be skipped, or that it should simply ignore a missing dependency when encountered in a tree and install anything it does know about? I assumed the latter. If that's how it worked, then I would think the download could have just passed the flag thru to the install --download-only --destdir command that it sounds like it's effectively running in the background.

from dnf-plugins-core.

m-blaha avatar m-blaha commented on August 16, 2024

Actually the former. DNF does not allow you to install packages with missing dependencies. You can do it using underlying rpm but not with DNF. And download --resolve works similarly - either you can download the whole dependency tree, or it fails and does not download anything.

from dnf-plugins-core.

mtalexan avatar mtalexan commented on August 16, 2024

Well dang. Digging into the code more, it appears all the logic is in python-hawkey and/or libdnf to do any dependency tree operations. Since my primary issue is wanting to pre-prune based on what's already available on a target system different from the one I'm currently on, it appears I'm out of luck because that's not possible from python-hawkey.

from dnf-plugins-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.