Commit Graph

164 Commits

Author SHA1 Message Date
Aleš Matěj 9635f736cc spec: fix modularity man page 2024-08-20 07:03:57 +00:00
Marek Blaha ea4055fa38 doc: Include modularity documentation 2024-08-19 07:49:02 +00:00
Marek Blaha e725459f2a doc: Revise packages filtering doc section 2024-08-19 07:49:02 +00:00
Aleš Matěj f85c7fad37 spec: fix cmake focus_new arg 2024-08-07 07:53:14 +00:00
Aleš Matěj 26096c96b0 Use `SOLVER_FLAG_FOCUS_NEW` to install latests versions of deps
This is a new flag in the recent 0.7.30 release.
It is used only in current rawhide.

We previously tried to use `SOLVER_FLAG_FOCUS_BEST` but it turned out to
be too strong, this new flag should update packages only if it is
required for installing the latests versions of dependencies.

We had several reports where users expect this behavior.

This should properly resolve issue such as:
https://bugzilla.redhat.com/show_bug.cgi?id=2150300
https://issues.redhat.com/browse/RHEL-1374
2024-08-06 11:22:15 +00:00
Petr Písař 04d9908f59 spec: Stricten a dependency on DNF libraries in plugin subpackages
ELF plugins of dnf5-plugins and dnf5-plugin-automatic subpackages link
to libdnf and libdnf-cli libraries. Because the libraries come from
the same source package, it is desired to pin the plugin subpackages
to same release of the libraries subpackages.

This was hinted by rpminspect and already partially implemented in
commit 97cdbe57c3 ("Add explicit package
version for libdnf5-cli").
2024-08-02 14:11:55 +00:00
Aleš Matěj 485d3fec2c Add `redo` to and install history documentation 2024-07-31 11:22:55 +00:00
evan-goode 51479b97ec Release 5.2.5.0 2024-07-23 19:44:01 +00:00
Jaroslav Rohel 4eb54bacce Support colon in username, use LRO_USERNAME and LRO_PASSWORD
Requires librepo version >= 1.18.0
2024-06-27 20:03:18 +00:00
evan-goode 62d0d1fc63 Release 5.2.4.0 2024-06-26 18:10:20 +00:00
Aleš Matěj 444cb9c617 Add `replay` command to replay stored transactions
In comparison to dnf4 the command:
- is no longer a `history` subcommand, it is a standalone command.
- accepts as an argument a path to a directory where the transaction is
  stored. This is because now any transaction can be stored using the
  `--store` option which also stores the elements (packages, groups..)
  of the transaction.
2024-06-19 12:34:16 +00:00
Jan Kolarik d0fadc05f2 builddep: Add build-dep alias
Since the `build-dep` alias has been present in dnf4 and is still used by some teams, let's keep it in dnf5 as well.
2024-06-11 09:25:15 +00:00
Marek Blaha 8fc47fa702 spec: Fix files and directories ownership
- /usr/lib/sysimage/dnf was renamed to /usr/lib/sysimage/libdnf5
- added /usr/lib/sysimage/libdnf5/comps_groups directory
- added /usr/lib/sysimage/libdnf5/offline directory
- added /etc/dnf/versionlock.toml config file

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2284612
2024-06-05 05:55:04 +00:00
jan-kolarik 0ac52af37a Release 5.2.3.0 2024-06-03 14:14:48 +00:00
jan-kolarik 6dde662f52 Release 5.2.2.0 2024-05-28 11:55:05 +00:00
Marek Blaha be98c25b5a automatic: ship default automatic.conf 2024-05-15 06:53:37 +00:00
jan-kolarik e4502c2111 Release 5.2.1.0 2024-05-06 08:15:47 +00:00
jan-kolarik 1fe03c783b Release 5.2.0.0 2024-04-24 14:11:26 +00:00
Jan Kolarik be57d31a30 spec: Add conflict with the former provider of plugin man pages
We relocated the plugin man pages provided by `dnf-plugins-core` to a different location, avoiding conflicts with `dnf5`, starting with `dnf-plugins-core` version 4.7.0. As a result, we need to require this upgrade; otherwise, the man page files will conflict.
2024-04-24 11:03:03 +00:00
Jan Kolarik 7a6bcc9b25 spec: Add conflict with the old provider of dnf.conf
Another bit needed for switching dnf5 in Rawhide. We need to ensure there are no multiple providers of the dnf configuration on the system simultaneously.
2024-04-24 10:56:17 +00:00
Jan Kolarik 077c7b134c Prepare for switch of dnf5 in Rawhide 2024-04-22 07:32:04 +00:00
Jan Kolarik 424d21528b spec: Simplify man page files
Use globs to cover both dnf5 man files and dnf symlinks.
2024-04-18 13:45:56 +00:00
Jaroslav Mracek 777a6e1830 Not handle compatibility.conf as configuration file
Distribution configuration files in /usr/share/dnf5 are not supposed to
be modified by user and should be always overriden by the next update.
This behavior allows to modify distribution configuration without
modifying DNF5 code.

Closes: https://github.com/rpm-software-management/dnf5/issues/1407
2024-04-15 11:35:17 +00:00
Marek Blaha a46355d005 Bump libdnf5/libdnf5-cli so version 2024-04-12 14:13:57 +00:00
Marek Blaha aba7ffa5a5 spec: Add missing dnf-config-manager.8.gz file 2024-04-12 08:30:02 +00:00
Jaroslav Rohel 7b36774e12 doc: document config-manager plugin 2024-04-10 21:33:04 +00:00
Aleš Matěj db3da7c269 Extend version to four numbers (5.x.y.z)
We want to keep the most important version number stable (as a 5 because
we are calling the project dnf5) however we also want to mostly adhere
to the SEMVER system. Therefore we switch to a 4 number scheme,
incrementing the:

PRIME version when completely changing API and everything in dnf
MAJOR version when you make incompatible API changes
MINOR version when you add functionality in a backward compatible manner
MICRO version when you make backward compatible bug fixes

The PRIME version should hopefully stay as a 5 for the foreseeable future.
2024-04-10 13:56:57 +00:00
Aleš Matěj 8cbb4a372b Unify smallest version number name
Dnf5 and libdnf5 call the smallest version number `micro` (on the API as
well) unify cmake variable to be the same.
2024-04-10 13:56:57 +00:00
Aleš Matěj 4c9b4d7e8e cmake: rename PROJECT_VERSION_* to just VERSION_*
The problem is that cmake call to `project()` sets (overrides) the:
`PROJECT_VERSION_MAJOR/MINOR/PATCH/TWEAK` with the values provided.
https://cmake.org/cmake/help/latest/command/project.html#options

This could cause confusion when we want to name some of the variables
differently and use differnt order (for example the
PROJECT_VERSION_MAJOR variable woudn't be the first).
2024-04-10 13:56:57 +00:00
Neal Gompa 22e196f480 dnf5daemon-server/dbus: Install config files into /usr
We should prefer to install DBUS policy configuration files into
/usr rather than /etc.
2024-04-08 08:19:22 +00:00
Jan Kolarik 9407ef71d6 man: Link dnf5 pages to dnf 2024-04-03 09:30:25 +00:00
inknos f088f74950 Release 5.1.17 2024-04-03 08:52:44 +00:00
Jan Kolarik 0343b01a1f spec: Add versionlock provides and sort 2024-04-03 07:11:58 +00:00
inknos 1edbc0f572 Release 5.1.16 2024-04-02 09:57:08 +00:00
Jan Kolarik 05d410f7fb bash-completion: Prepare ownerships for dnf5 switch
Use the `dnf` link when `dnf5` is already used as the default package manager.
2024-03-28 12:42:36 +00:00
Jan Kolarik 6a1d5f282a bash-completion: Complete dnf command if we own it 2024-03-28 12:42:36 +00:00
Jan Kolarik e15422d05f doc: Review and fix missing commands
Review documentation, including adding documentation for missing commands and addressing deployment issues.
2024-03-27 07:40:25 +00:00
Evan Goode e8c59014fd system-upgrade: fix pkgconfig systemd variable 2024-03-19 06:23:10 +00:00
Evan Goode 6de05b31ec system-upgrade: misc fixes 2024-03-19 06:23:10 +00:00
Evan Goode cf6aa1d99e system-upgrade: systemd behind build flag 2024-03-19 06:23:10 +00:00
Evan Goode aeb0fb3cc3 system-upgrade: Handle _execute errors 2024-03-19 06:23:10 +00:00
Evan Goode 4b21d94d63 system-upgrade: Add `offline`, `system-upgrade` commands
Implement `offline` and `system-upgrade` commands. `dnf5 system-upgrade`
is intended to be backwards-compatible with `dnf4 system-upgrade`. All
of system-upgrade's functionality, with the exception of the `download`
subcommand, is implemented in the new `offline` command, and
system-upgrade shares subcommands with it.

This is more or less a port of `dnf4 system-upgrade`.

This behavior of `dnf5 offline` was proposed here: https://github.com/rpm-software-management/dnf5/issues/1224#issuecomment-1936651917.

For https://github.com/rpm-software-management/dnf5/issues/1052
2024-03-19 06:23:10 +00:00
Stephen Gallagher 141c1fa6f1 Don't set obsoletes < 5 for ELN/RHEL yet
There are conflicts with yum. This should be adjusted back once things
are properly addressed in Fedora.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2024-03-15 13:49:45 +00:00
inknos 621642db04 Release 5.1.15 2024-03-15 12:23:35 +00:00
Marek Blaha 6a9e045bed dnfdaemon: Bump sdbus-cpp requirement to 0.9.0
Version 0.9.0 contains interface.setDestination() API we use.
2024-03-08 10:50:39 +00:00
inknos 22df02d64b Release 5.1.14 2024-03-05 12:27:37 +00:00
inknos 9763e463a9 Release 5.1.13 2024-02-20 14:31:30 +00:00
Nicola Sella 8bc6b98500 Typo in dnf5.spec 2024-02-20 12:51:45 +00:00
Petr Písař ff01a5df20 build: Adapt to changes in Fedora packaging of bash-completion
Fedora 41 moved a CMake script for bash-completion from
bash-completion to bash-completion-devel package
<https://bugzilla.redhat.com/show_bug.cgi?id=1457164>. That broke
building dnf5.spec:

RPM build errors:
    Directory not found: /builddir/build/BUILDROOT/dnf5-5.1.12-1.20240216152113944400.pr1250.22.gd9fb3e11.fc41.x86_64/usr/share/bash-completion
    Directory not found: /builddir/build/BUILDROOT/dnf5-5.1.12-1.20240216152113944400.pr1250.22.gd9fb3e11.fc41.x86_64/usr/share/bash-completion/completions
    File not found: /builddir/build/BUILDROOT/dnf5-5.1.12-1.20240216152113944400.pr1250.22.gd9fb3e11.fc41.x86_64/usr/share/bash-completion/completions/dnf5

This adapts to the change.

Fixes: #1252
2024-02-20 05:38:10 +00:00
Marek Blaha 5b81769b79 automatic: Use only one systemd timer
I found multiple timers misleading. Let's try to return back to one
timer that respects config file settings without using command line
arguments to override some options.
In case the users need it we can add convenience timers (notifyonly /
download / install) later.
2024-02-19 09:12:26 +00:00