dpkg -l
dpkg --get-selections
dpkg -L ufw
dpkg -S /etc/host.conf
dpkg -p package-name
ls /etc/apt/source.list.d/
apt-cache search keyword
apt-cache show package-name
apt-cache depends package-name
apt update
This command doesn’t install any new versions, only updates their list
apt upgrade -y
apt autoremove -y
rpm -qa
rpm -qi package-name
rpm -ql package-name
rpm -qc package-name
rpm -qd package-name
rpm -qpi file # option p means query file
rpm -qp --scripts pacakge-file
rpm -qf file-name
/etc/yum.conf
/etc/yum.repos.d/
yum provides exec-name
yum search package-name
yum info package-name
yumdownloader package-name
yum check-update
yum update [package-name]
yum history list
yum history info transaction-id
yum history undo transaction-id
yum update --security