Skip to content

Implement shell command #153

@mcurlej

Description

@mcurlej
  • Make a decision how to provide a functionality provided by shell
    • interactive shell cannot behave by the same way because the change of Goal workflow (dnf4 - install <unknown> reports problem directly, but in DNF5 it requires resolve)

Command: shell
Aliases: sh

dnf [options] shell [filename]

Open an interactive shell for conducting multiple commands during a single execution of DNF. These commands can be issued manually or passed to DNF from a file. The commands are much the same as the normal DNF command line options. There are a few additional commands documented below.

config [conf-option] [value]

  • Set a configuration option to a requested value. If no value is given it prints the current value.

repo [list|enable|disable] [repo-id]

  • list: list repositories and their status
  • enable: enable repository
  • disable: disable repository

transaction [list|reset|solve|run]

  • list: resolve and list the content of the transaction
  • reset: reset the transaction
  • run: resolve and run the transaction

Note that all local packages must be used in the first shell transaction subcommand (e.g. install /tmp/nodejs-1-1.x86_64.rpm /tmp/acpi-1-1.noarch.rpm) otherwise an error will occur. Any disable, enable, and reset module operations (e.g. module enable nodejs) must also be performed before any other shell transaction subcommand is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: LOWRFERequest For Enhancement (as opposed to a bug)TriagedSomeone on the DNF 5 team has read the issue and determined the next steps to take

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions