|
|
Installation of packages can be sometimes hard. Sometimes one has questions like "I knew a file named A on my machine, what would be the package-name on another machine with a different system which provides the file". This table tries to help to answer questions like this.
|
|
|
|
|
|
Nomenclatur: _filename_ and _package_name_ below can also be a on a part or substring of a file- or package-name especially for some the search commands.
|
|
|
| | ubuntu/debian | openSUSE/SLES | Arch |
|
|
|
|--|---------------|---------------|------|
|
|
|
| locate an existing file | locate _filename_ | locate _filename_ | locate _filename_ |
|
|
|
| install a package | apt install _package_name_ | zypper in _package_name_ | pacman -Suy _package_name_ **or with aur** |
|
|
|
| fuzzy search for a package-name | apt search _package_name_ | zypper se _package_name_ | pacman -Ss _package_name_ |
|
|
|
| List all installed packages | dpkg -l | zypper se -i **or** rpm -qa | pacman -Q |
|
|
|
| Find out the package-name a certain installed file belongs to | dpkg -S _path_ **o**r apt-file search _path_ | rpm -qf _path_ | pacman -Qo _path_ |
|
|
|
| List all files included in an installed package | dpkg -L _package_name_ | rpm -ql _package_name_ | pacman -Ql _package_name_ |
|
|
|
| Website to search for packages | <https://packages.ubuntu.com/> <https://packages.debian.org/index> | <https://software.opensuse.org/explore> | <https://archlinux.org/packages/> <https://aur.archlinux.org/> |
|
|
|
| | General | ubuntu/debian | openSUSE/SLES | Arch |
|
|
|
|--|---------|---------------|---------------|------|
|
|
|
| find out the origin file or alias of a command | type _command-name_ | | | |
|
|
|
| locate an existing file | locate _filename_ | | | |
|
|
|
| install a package | | apt install _package_name_ | zypper in _package_name_ | pacman -Suy _package_name_ **or with aur** |
|
|
|
| fuzzy search for a package-name | | apt search _package_name_ | zypper se _package_name_ | pacman -Ss _package_name_ |
|
|
|
| List all installed packages | | dpkg -l | zypper se -i **or** rpm -qa | pacman -Q |
|
|
|
| Find out the package-name a certain installed file belongs to | | dpkg -S _path_ **o**r apt-file search _path_ | rpm -qf _path_ | pacman -Qo _path_ |
|
|
|
| List all files included in an installed package | | dpkg -L _package_name_ | rpm -ql _package_name_ | pacman -Ql _package_name_ |
|
|
|
| Website to search for packages | | <https://packages.ubuntu.com/> <https://packages.debian.org/index> | <https://software.opensuse.org/explore> | <https://archlinux.org/packages/> <https://aur.archlinux.org/> |
|
|
|
|