This is an tool to use same commands pacman style in Ubuntu | Kubuntu | Another Linux with APT.
Installing: put this on /usr/bin and get 777 permissions on /usr/bin/pacman.
pacman -Syu <pkg>
Install (and update package list)
pacman -S <pkg>
Install only
pacman -Rsc <pkg>
Uninstall
pacman -Ss <keywords>
Search
pacman -Syu
Upgrade everything
pacman -Qe
List explictly-installed packages
pacman -Ql <pkg>
What files does this package have?
pacman -Qii <pkg>
List information on package
pacman -Qo <file>
Who owns this file?
pacman -Qs <query>
Search installed packages for keywords
pacman -Qdt
List unneeded packages
pacman -Rns $(pacman -Qdtq)
Uninstall unneeded packages
Avoid orphans by using pacman -Rsc to remove packages, which will remove unneeded dependencies.
- Pacman tips and tricks (wiki.archlinux.org)