|
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.
|
|
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.
|
|
|
|
|
|
Nomenclature: _filename_ and _package_name_ below can also be a on a part or substring of a file- or package-name especially for some of the search commands.
|
|
Nomenclature: _filename_ and _package_name_ below can also be a on a part or substring of a file- or package-name especially for some of the search commands.
|
|
| | Hint for application | General | ubuntu/debian | openSUSE/SLES | Fedora | Redhat/Centos | Arch | Msys2(Windows) | MacOS |
|
|
| | Hint for application | General | ubuntu/debian | openSUSE/SLES | Fedora | Redhat/Centos/Rocky | Arch | Msys2(Windows) | MacOS |
|
|
|--|----------------------|---------|---------------|---------------|--------|---------------|------|----------------|-------|
|
|
|--|----------------------|---------|---------------|---------------|--------|---------------------|------|----------------|-------|
|
|
| Website to search for packages | | <https://pkgs.org/> | <https://packages.ubuntu.com/> <https://packages.debian.org/index> | <https://software.opensuse.org/explore> | | | <https://archlinux.org/packages/> <https://aur.archlinux.org/> | <https://packages.msys2.org/queue> | Homebrew <https://brew.sh/> |
|
|
| Website to search for packages | | <https://pkgs.org/> | <https://packages.ubuntu.com/> <https://packages.debian.org/index> | <https://software.opensuse.org/explore> | | | <https://archlinux.org/packages/> <https://aur.archlinux.org/> | <https://packages.msys2.org/queue> | Homebrew <https://brew.sh/> |
|
|
| find out the OS version | | `cat /etc/os-release` | | | | | | | |
|
|
| find out the OS version | | `cat /etc/os-release` | | | | | | | |
|
|
| find out the origin file or alias of a command | | `type `_command-name_ | | | | | | | |
|
|
| find out the origin file or alias of a command | | `type `_command-name_ | | | | | | | |
|
|
| locate an existing file | combine it with `grep` | `locate `_filename_ | | | | | | | |
|
|
| locate an existing file | combine it with `grep` | `locate `_filename_ | | | | | | | |
|
|
| install a package | | | `apt install` _package_name_ | `zypper in `_package_name_ | | `yum install`_package_name_ | `pacman -Suy `_package_name_ **or with aur** | `pacman -Suy `_package_name_ | |
|
|
| install a package | | | `apt install` _package_name_ | `zypper in `_package_name_ | `dnf install`_package_name_ | `yum install`_package_name_ | `pacman -Suy `_package_name_ **or with aur** | `pacman -Suy `_package_name_ | |
|
|
| fuzzy search for a package-name | | | `apt search `_package_name_ | `zypper se `_package_name_ | | `yum search` package_name | `pacman -Ss` _package_name_ | `pacman -Ss` _package_name_ | |
|
|
| fuzzy search for a package-name | | | `apt search `_package_name_ | `zypper se `_package_name_ | `dnf search` package_name | `yum search` package_name | `pacman -Ss` _package_name_ | `pacman -Ss` _package_name_ | |
|
|
| List all installed packages | combine it with `grep` | | `dpkg -l` | `zypper se -i `**or** `rpm -qa` | | `rpm -qa` | `pacman -Q` | `pacman -Q` | |
|
|
| List all installed packages | combine it with `grep` | | `dpkg -l` | `zypper se -i `**or** `rpm -qa` | `rpm -qa` | `rpm -qa` | `pacman -Q` | `pacman -Q` | |
|
|
| Find out the package-name an installed file belongs to | | | `dpkg -S` _path_ **or**` apt-file search` _path_ | `rpm -qf `_path_ | | `rpm -qf `_path_ | `pacman -Qo` _path_ | `pacman -Qo` _path_ | |
|
|
| Find out the package-name an installed file belongs to | | | `dpkg -S` _path_ **or**` apt-file search` _path_ | `rpm -qf `_path_ | `rpm -qf `_path_ | `rpm -qf `_path_ | `pacman -Qo` _path_ | `pacman -Qo` _path_ | |
|
|
| List all files included in an installed package | use it with a pager like `less` | | `dpkg -L` _package_name_ | `rpm -ql` _package_name_ | | `rpm -ql` _package_name_ | `pacman -Ql` _package_name_ | `pacman -Ql` _package_name_ | |
|
|
| List all files included in an installed package | use it with a pager like `less` | | `dpkg -L` _package_name_ | `rpm -ql` _package_name_ | `rpm -ql` _package_name_ | `rpm -ql` _package_name_ | `pacman -Ql` _package_name_ | `pacman -Ql` _package_name_ | |
|
|
|
|
|