with dnf4 the dnf history was stored somewhere under /var/cache or /var/lib and was clearable by removing store files therein
how does one nowerdays with dnf5 clear the dnf history ?
On Mon, Jan 20, 2025 at 1:48 PM old sixpack13 sixpack13@online.de wrote:
with dnf4 the dnf history was stored somewhere under /var/cache or /var/lib and was clearable by removing store files therein
how does one nowerdays with dnf5 clear the dnf history ?
/var/log/dnf5.log*
On Mon, Jan 20, 2025 at 12:58 PM old sixpack13 sixpack13@online.de wrote:
with dnf4 the dnf history was stored somewhere under /var/cache or /var/lib and was clearable by removing store files therein
how does one nowerdays with dnf5 clear the dnf history ?
Related, DNF5 stores its database at /var/lib/dnf/history.sqlite. If you issue `dnf history list` then DNF pulls from the SQLites database.
If you want to clear the history from the database, then see https://discussion.fedoraproject.org/t/prune-dnf-history-database/78184/.
Jeff
Jeffrey Walton wrote: ...
Related, DNF5 stores its database at /var/lib/dnf/history.sqlite. If
/var/lib/dnf/history.sqlite is absent here or you meant DNF4 under /var/lib/dnf/ I have repos/
history seems to be stored under /usr/lib/sysimage/libdnf5/ in transaction_history.sqlite
=== but another question: why does dnf5 (it seems only sometimes !) stores repos data under ~/cache/libdnf5 and /var/cache/libdnf5 ?
On Tue, Jan 21, 2025 at 10:25 AM old sixpack13 sixpack13@online.de wrote:
Jeffrey Walton wrote: ...
Related, DNF5 stores its database at /var/lib/dnf/history.sqlite. If
/var/lib/dnf/history.sqlite is absent here or you meant DNF4 under /var/lib/dnf/ I have repos/
history seems to be stored under /usr/lib/sysimage/libdnf5/ in transaction_history.sqlite
Yeah, the machine I checked that on was dnf-system-upgraded. I guess it uses the old database in that case. (I did verify the records were current, so I know it is being used with F41).
but another question: why does dnf5 (it seems only sometimes !) stores repos data under ~/cache/libdnf5 and /var/cache/libdnf5 ?
I don't know.
Jeff
Am 21.01.25 um 4:29 PM schrieb Jeffrey Walton:
On Tue, Jan 21, 2025 at 10:25 AM old sixpack13 sixpack13@online.de wrote:
but another question: why does dnf5 (it seems only sometimes !) stores repos data under ~/cache/libdnf5 and /var/cache/libdnf5 ?
I don't know.
AFAICT, when running dnf5 as ordinary user (e.g. dnf repoquery), it uses ~/cache/libdnf5, when running as root (e.g. for real updates) it uses /var/cache/libdnf5
Ralf
Jeffrey Walton wrote: ...
Yeah, the machine I checked that on was dnf-system-upgraded. I guess
it uses the old database in that case. (I did verify the records were current, so I know it is being used with F41).
here it's an upgraded box too. yesterday I run "dnf history list" with a lot of output while /var/lib/dnf/ was empty.
only since I deleted /usr/lib/sysimage/libdnf5/*history.sqlite* "dnf history list" had zero output