The table below contains package manager commands for common Linux distros. Haven’t used Gentoo for a while. Maybe add it later.

operation | distro Arch Fedora RHEL | CentOS Debian | Ubuntu
update pacman -Sy dnf makecache yum makecache apt update
upgrade pacman -Su dnf upgrade yum upgrade apt upgrade
install (remote) pacman -S dnf install yum install apt install
install (local) pacman -U rpm -i rpm -i dpkg -i
remove pacman -R dnf remove yum remove apt remove
search (remote) pacman -Ss dnf search yum search apt search
search (local) pacman -Qs      
query (remote)   repoquery repoquery apt list
query (local)   rpm -qa rpm -qa dpkg -l
info (remote) pacman -Si dnf info yum info apt show
info (local) pacman -Qi rpm -qi rpm -qi dpkg -s
list files (remote) pkgfile -l repoquery -l repoquery -l apt-file list
list files (local) pacman -Ql rpm -ql rpm -ql dpkg -L
own file (remote) pkgfile dnf provides yum provides apt-file search
own file (local) pacman -Qo rpm -qf rpm -qf dpkg -S
clean pacman -Scc dnf clean all yum clean all apt clean