DNF

1 minute read
  • How not to include specific packages to update:

    # Formula:
    sudo dnf update --exclude=<pkg-name>
    
    # For example, if you want to skip `texlive-...` to update,
    # then you would run:
    sudo dnf update --exclude=texlive-\*
    
  • Search specific package:

    # Formula:
    sudo dnf search <pkg-name>
    
    # e.g.
    sudo dnf search sox
    
  • Check if specific package is installed:

    # Formula:
    dnf list installed "pkg-name"
    
    # e.g.
    dnf list installed "postgresql*"
    
    # Alternatively, you can also do this:
    dnf list installed | grep postgresql
    
  • Remove specif package:

    # Formula:
    sudo dnf remove <pkg-name>
    
    # e.g.
    sudo dnf remove zathura