... | ... | @@ -3,13 +3,13 @@ Installation of packages can be sometimes hard. Sometimes one has questions like |
|
|
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.
|
|
|
| | General | ubuntu/debian | openSUSE/SLES | Arch |
|
|
|
|--|---------|---------------|---------------|------|
|
|
|
| find out the OS version | cat /etc/os-release | | | |
|
|
|
| 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_ **or** 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_ |
|
|
|
| find out the OS version | `cat /etc/os-release` | | | |
|
|
|
| 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_ **or**` 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/> |
|
|
|
|