Running dnf history says 'Missing command'?

Hellohello. I recently did a dnf update, and it appears to have broken some closed-source/proprietary apps (Parsec and Zoom, most notably). I thought that using dnf rollback would be the easiest, and went to run dnf history, and it said the command was missing:

indoorjetpacks@skywalker:~$ dnf history
Missing command. Add "--help" for more information about the arguments.
indoorjetpacks@skywalker:~$ dnf --help | grep -E 'history'
  history                                Manage transaction history
indoorjetpacks@skywalker:~$ ^C
indoorjetpacks@skywalker:~$ dnf info dnf5
Updating and loading repositories:
 Fedora 41 - x86_64 - Updates                                                                                       100% |  60.5 KiB/s |  29.6 KiB |  00m00s
 Fedora 41 - x86_64                                                                                                 100% |  88.2 KiB/s |  30.3 KiB |  00m00s
 RPM Fusion for Fedora 41 - Free - Updates                                                                          100% |   7.0 KiB/s |   3.3 KiB |  00m00s
 RPM Fusion for Fedora 41 - Nonfree - Updates                                                                       100% |  28.2 KiB/s |   5.8 KiB |  00m00s
 download.vscodium.com                                                                                              100% |   8.0 KiB/s | 833.0   B |  00m00s
 WineHQ packages                                                                                                    100% |  85.3 KiB/s |   2.6 KiB |  00m00s
Repositories loaded.
Installed packages
Name            : dnf5
Epoch           : 0
Version         : 5.2.13.1
Release         : 1.fc41
Architecture    : x86_64
Installed size  : 2.4 MiB
Source          : dnf5-5.2.13.1-1.fc41.src.rpm
From repository : updates
Summary         : Command-line package manager
URL             : https://github.com/rpm-software-management/dnf5
License         : GPL-2.0-or-later
Description     : DNF5 is a command-line package manager that automates the process of installing,
                : upgrading, configuring, and removing computer programs in a consistent manner.
                : It supports RPM packages, modulemd modules, and comps groups & environments.
Vendor          : Fedora Project

I also tried doing dnf update dnf5, which said it was up to date. Worth noting that I do have timeshift snapshots, and did one before updating, but I’ve yet to do a restore, so I’m unfamiliar with doing that and a little leery of somehow making things worse, and AFAIK those should be a last resort anyway, and I’d like to actually sort out the missing dnf command in case it’s indicative of some other larger issue.

inxi output:

indoorjetpacks@skywalker:~$ inxi -Fxz
System:
  Kernel: 6.14.9-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 14.3.1
  Desktop: KDE Plasma v: 6.3.5 Distro: Fedora Linux 41 (KDE Plasma)
Machine:
  Type: Desktop Mobo: Micro-Star model: PRO X670-P WIFI (MS-7D67) v: 1.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: 1.A0
    date: 08/10/2023
CPU:
  Info: 8-core model: AMD Ryzen 7 7700X bits: 64 type: MT MCP arch: Zen 4
    rev: 2 cache: L1: 512 KiB L2: 8 MiB L3: 32 MiB
  Speed (MHz): avg: 2989 min/max: 400/5575 boost: enabled cores: 1: 2989
    2: 2989 3: 2989 4: 2989 5: 2989 6: 2989 7: 2989 8: 2989 9: 2989 10: 2989
    11: 2989 12: 2989 13: 2989 14: 2989 15: 2989 16: 2989 bogomips: 144000
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060] vendor: Micro-Star MSI
    driver: nvidia v: 575.57.08 arch: Ampere bus-ID: 01:00.0
  Device-2: Advanced Micro Devices [AMD/ATI] Raphael vendor: Micro-Star MSI
    driver: amdgpu v: kernel arch: RDNA-2 bus-ID: 18:00.0 temp: 51.0 C
  Display: wayland server: Xwayland v: 24.1.6 compositor: kwin_wayland
    driver: gpu: nvidia,nvidia-nvswitch resolution: 1: 2560x1440~60Hz
    2: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: nvidia,radeonsi,swrast platforms:
    active: gbm,wayland,x11,surfaceless,device inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 575.57.08
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
  API: Vulkan v: 1.4.309 drivers: nvidia,radv,llvmpipe
    surfaces: xcb,xlib,wayland devices: 3
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel bus-ID: 01:00.1
  Device-2: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio
    [Rembrandt/Strix] vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 18:00.1
  Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 18:00.6
  Device-4: AKAI Professional M.I. APC MINI driver: snd-usb-audio type: USB
    bus-ID: 3-4.2:11
  Device-5: Micro Star USB Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB bus-ID: 3-6:4
  API: ALSA v: k6.14.9-200.fc41.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
    v: kernel port: d000 bus-ID: 06:00.0
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e v: kernel bus-ID: 0d:00.0
  IF: wlp13s0 state: down mac: <filter>
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB
    bus-ID: 3-7:9
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 9.78 TiB used: 2.45 TiB (25.0%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD Blue SN570 500GB
    size: 465.76 GiB temp: 42.9 C
  ID-2: /dev/sda vendor: Samsung model: SSD 870 EVO 250GB size: 232.89 GiB
  ID-3: /dev/sdb vendor: Western Digital model: WD6003FZBX-00K5WB0
    size: 5.46 TiB
  ID-4: /dev/sdc vendor: Samsung model: SSD 870 EVO 4TB size: 3.64 TiB
Partition:
  ID-1: / size: 93.24 GiB used: 53.92 GiB (57.8%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 19.4 MiB (3.8%) fs: vfat
    dev: /dev/sda1
  ID-3: /home size: 457.38 GiB used: 181.98 GiB (39.8%) fs: ext4
    dev: /dev/nvme0n1p1
  ID-4: /opt size: 294.23 GiB used: 22.51 GiB (7.6%) fs: ext4 dev: /dev/sdc1
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
  ID-2: swap-2 type: partition size: 15.62 GiB used: 0 KiB (0.0%)
    dev: /dev/sda4
Sensors:
  System Temperatures: cpu: 56.8 C mobo: 40.8 C gpu: amdgpu temp: 51.0 C
  Fan Speeds (rpm): fan-1: 293 fan-2: 0 fan-3: 0 fan-4: 330 fan-5: 541
    fan-6: 541 fan-7: 0 fan-8: 831 fan-9: 0 fan-10: 0
Info:
  Memory: total: 64 GiB note: est. available: 61.95 GiB used: 7.65 GiB (12.3%)
  Processes: 485 Uptime: 1h 4m Init: systemd target: graphical (5)
  Packages: 15 note: see --rpm Compilers: gcc: 14.3.1 Shell: Bash v: 5.2.32
    inxi: 3.3.38

dnf history by itself is an incomplete command.

dnf history --help will tell you the subcommands available.

Try dnf history list and then (for example) dnf history info 10 to see the details of a particular transaction in the history.

1 Like

Ahhh, okay. So anything under the Subcommands section of dnf --help also has an additional help menu that can be opened? With like `dnf [command] --help’ Fantastic, thank you, I’ll give this a go after work tonight.

There are docs for dnf5 Welcome to DNF5’s documentation! — dnf5 documentation

1 Like

Sometimes you just can press the tab and it gives you the available options:

dnf history &press Tab
list                            (List transactions)
info                            (Print details about transactions)
undo                            (Revert all actions from the specified transaction)
redo                            (Repeat all actions from the specified transaction)
rollback                        (Undo all transactions performed after the specified transaction)
store                           ([experimental] Store transaction to a file)