Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 2.23 KB

dnf-1_vs_dnf-2.rst

File metadata and controls

56 lines (44 loc) · 2.23 KB

Changes in DNF-2 compared to DNF-1

CLI changes

Reintroduction of YUM's configuration options includepkgs and excludepkgs

Due to a better compatibility with YUM, configuration options include and exclude were replaced by the original options :ref:`includepkgs <include-label>` and :ref:`excludepkgs <exclude-label>`.

DNF group install --with-optional option

Installation of optional packages of group is changed from subcommand with-optional to option --with-optional.

Python API changes

All non-API methods and attributes are private

Warning

All non-API methods and attributes of :doc:`documented modules <api>` are now private in order to accomplish more distinguishable API.

Following API methods accept different arguments

  1. :meth:`dnf.Base.add_remote_rpms`
  2. :meth:`dnf.Base.group_install`
  3. :meth:`dnf.cli.Command.configure`
  4. :meth:`dnf.cli.Command.run`
  5. :meth:`dnf.Plugin.read_config`