| Operation | pacman | apt (Debian) |
|---|---|---|
| List files in a package | pacman -Ql <pkg> (installed) / pacman -Fl <pkg> (remote) |
dpkg -L <pkg> (installed) / apt-file list <pkg> (remote) |
| Which package owns a path | pacman -Qo <file> |
dpkg -S <file> / apt-file search <file> |
| Clean cache | pacman -Sc (old) / pacman -Scc (all) |
apt clean (all) / apt autoclean (old) |
| Search local / remote | pacman -Qs <pat> / pacman -Ss <pat> |
`dpkg -l |
| Remove + purge config | pacman -Rns <pkg> |
apt purge <pkg> |
Notes: pacman's -n skips saving config files; apt needs apt-file (separate package + apt-file update) for uninstalled file queries.