# locally installed and remote package dnf info <pkg> # locally installed package rpm -qi <pkg> # local .rpm file rpm -qip <pkg.rpm>