DNF transaction history

DNF and libdnf transaction database, one row per package operation with its command line, requesting uid, repository and install reason.

LinuxSystem and configurationParser: packages_dnf_history16 fieldsCollected by priority triage

What DNF transaction history is

DNF and libdnf transaction database, one row per package operation with its command line, requesting uid, repository and install reason. It is one of 90 system and configuration artifacts Arcsentry reads. System and configuration artifacts describe how a host is set up: accounts, policies, installed software, network settings and system identity.

Forensic value

System and configuration artifacts help answer questions like these:

  • What is this host and who uses it?
  • Which settings or accounts changed?

Where it is stored

Arcsentry looks for DNF transaction history at these locations inside a collection, disk image or mounted volume:

usr/lib/sysimage/libdnf5/transaction_history.sqlite
var/lib/dnf/history.sqlite

What Arcsentry records

Each DNF transaction history record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:

FieldTypeMeaning
event_timestampTransaction start, Unix seconds UTC
end_timeTransaction end, Unix seconds UTC; absent on an interrupted transaction
event_actionPackage operation performed on this item
software_package_nameRPM package name
package_versionRendered epoch:version-release
architectureRPM package architecture
repoRepository the package came from; @System for a locally installed one
command_lineCommand line that opened the transaction
user_idAudit loginuid of the requester; absent when no login session recorded it
event_outcomeTransaction completion state
install_reasonWhy the package is present after this operation
automatically_installedResolver pulled it in rather than the operator naming it
commentOperator comment recorded with dnf --comment
os_release_versionRelease version the transaction resolved to
event_sequencetrans_item row id; unique and monotonic within the file
managerPackage manager that recorded the transaction

Time

DNF transaction start time (Unix seconds, UTC) recorded by libdnf at transaction open. Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.

Collecting DNF transaction history with Arcsentry Collector

Arcsentry Collector gathers DNF transaction history in these triage profiles: linux::profile::triage::priority, linux::profile::triage::offline, linux::profile::triage::full. It is read straight from the file system, on a live host or inside a disk image, without mounting.

The collection targets that pick it up: linux::execution::docker_ondisk, linux::filesystem::bodyfile, linux::software_inventory::dnf.

sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
  -o /mnt/ir -f host.arcx --password-file /mnt/ir/pw.txt

Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.

Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so DNF transaction history can come from the tools you already use.

Analysing DNF transaction history in Arcsentry

Ask in plain English, for example "show DNF transaction history records from the incident window, newest first", and Arcsentry shows the query before it runs.

Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads DNF transaction history records with the same tools and cites them by event ID.

Frequently asked

Does Arcsentry parse DNF transaction history?

Yes. Arcsentry's DNF transaction history parser (packages_dnf_history) reads it from Linux evidence and records 16 fields per record, with provenance back to the source file.

How do I collect DNF transaction history?

Arcsentry Collector gathers it with the priority triage profile (linux::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.

Parse DNF transaction history on your own evidence.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial