Code Monkey home page Code Monkey logo

Comments (7)

pbrisbin avatar pbrisbin commented on August 16, 2024 1

from downgrade.

pbrisbin avatar pbrisbin commented on August 16, 2024

from downgrade.

Bill-Joe-Tech avatar Bill-Joe-Tech commented on August 16, 2024
[ Linux /home/user ]# downgrade gcc
loading packages...
warning: downgrading package gcc (13.2.1-3 => 12.2.1-4)
resolving dependencies...
warning: cannot resolve "gcc-libs=12.2.1-4", a dependency of "gcc"
:: The following package cannot be upgraded due to unresolvable dependencies:
      gcc

:: Do you want to skip the above package for this upgrade? [y/N] n
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'gcc-libs=12.2.1-4' required by gcc
[ Linux /home/user ]#

For instance, downgrading gcc would require removal of the existing package, but having a --force or -f option would automatically fix the issues presented in the output above (without manual use of pacman, yay, etc). Personally, I had wanted to downgrade gcc to 12.2.1-4 for compatibility with VMware.

from downgrade.

Bill-Joe-Tech avatar Bill-Joe-Tech commented on August 16, 2024

Thanks Pat :)

from downgrade.

pbrisbin avatar pbrisbin commented on August 16, 2024

Yes, it looks like downgrade accepts any arguments after -- as additional arguments to pass with pacman -U to install the package(s). So, whatever options would prevent pacman from prompting can be passed there. In your example, I think downgrade gcc -- --noconfirm may be what you want?

from downgrade.

pbrisbin avatar pbrisbin commented on August 16, 2024

I wonder if the --help could be clearer on this...

% downgrade --help
Usage: downgrade [option...] <pkg> [pkg...] [-- pacman_option...]

Options:
  ...

Note:
  Options after the -- characters will be treated as pacman options.
  ...

from downgrade.

pbrisbin avatar pbrisbin commented on August 16, 2024

Closing optimistically, assuming that solves things. Feel free to re-open if not.

from downgrade.

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.