User Tools

Site Tools


software

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software [2019/04/12 20:12]
Miroslav Bernát
software [2019/05/30 10:45] (current)
Miroslav Bernát
Line 1: Line 1:
 =====Software===== =====Software=====
 \\ \\
-YUM especially ​for rpm packages of Fedora and Red Hat distributions ^+DNF ^ for rpm packages of Red Hat, Fedora and CentOS distributions ^ 
 +| **dnf list --available** | lists all available packages to be installed | 
 +| **dnf list --installed** | lists all installed packages | 
 +| **dnf list** | lists all packages (installed and available) | 
 +| **dnf group list** | lists all groups of packages (installed and available) | 
 +| **dnf list --extras** | lists all installed packages that are not available in any configured repository | 
 +| **dnf list --upgrades** | lists available updates of installed packages | 
 +| **dnf list --recent** | lists packages recently added into the repositories | 
 +| **dnf list** <​application>​ | lists the packages (both installed and available) containing the application name | 
 +| **dnf repoquery --deplist** <​application>​ | lists of all dependencies (including packages) for a specified application | 
 +| **dnf info** <​application>​ | prints detailed information about a specified package | 
 +| **dnf group info** <​package_group>​ | prints detailed information about a specified group of packages | 
 +| **dnf provides** <​file>​ | prints a package (both installed and available) to which the specified file belongs | 
 +| **dnf search** <​application>​ | prints a list of packages related to a specified application | 
 +| **dnf install** <​application>​ | installs a specified package including possible dependencies | 
 +| **dnf install --downloadonly --downloaddir=**<​directory>​ <​application>​\\ **dnf download** <​application>​ | downloads a specified package from the repository | 
 +| **dnf download --resolve** <​application>​ | downloads a specified package and all its dependencies from the repository | 
 +| **dnf install** <​package>​ | installs a package from a particular directory, possible dependencies are resolved by repositories | 
 +| **dnf group install** <​package_group>​ | installs a specified group of packages including possible dependencies\\ ''#​ dnf group install KDE''​ | 
 +| **dnf reinstall** <​application>​ | reinstalls a specified package by the same version | 
 +| **dnf upgrade** | updates all installed packages (option „exclude“ in ///​etc/​dnf/​dnf.conf//​ defines packages to be excluded from the update or installation process) | 
 +| **dnf upgrade** <​application>​ | updates a specified package | 
 +| **dnf upgrade** <​package>​ | updates a package from a particular directory, possible dependencies are resolved by repositories | 
 +| **dnf group upgrade** <​package_group>​ | updates a specified group of packages including possible dependencies | 
 +| **dnf downgrade** <​application>​ | downgrades a package from the version currently installed to the previous version | 
 +| **dnf remove** / **erase** <​application>​ | removes a package including possible dependencies | 
 +| **dnf group remove** <​package_group>​ | removes a group of packages including possible dependencies | 
 +| **dnf repolist** (<​argument>​) | lists all enabled repositories (their id and name), if argument **enabled**,​ **disabled** or **all** is used, the particular type of repositories is displayed | 
 +| **createrepo** <​directory>​ | creates a local repository from the specified directory containing rpm packages, **-s** <​checksum_type>​ uses a specified checksum type, **-v** detailed output\\ ''#​ createrepo -s sha redhat.repo''​ | 
 +| **dnf** <​option>​ **--enablerepo=**<​repo_id>​ | enables a specified repository (permanently in ///​etc/​yum.repos.d/<​repository>//​)\\ ''#​ dnf install mplayer* --enablerepo=rpmfusion-free-updates''​ | 
 +| **dnf** <​option>​ **--disablerepo=**<​repo_id>​ | disables a specified repository (permanently in ///​etc/​yum.repos.d/<​repository>//​) | 
 +| **dnf clean all** | removes all cached data saved during the package installations (///​var/​cache/​dnf//​) | 
 +| **dnf history** | displays the transaction history | 
 +| **dnf history info** <ID> | displays detailed information about a specified transaction | 
 +| **dnf history undo** <ID> | reverts all changes within a specified transaction (removes/​installs software) | 
 +\\ 
 +^ YUM ^ for rpm packages of Red Hat, Fedora and CentOS ​distributions ^
 | **yum list available** | lists all available packages to be installed | | **yum list available** | lists all available packages to be installed |
 | **yum list installed** | lists all installed packages | | **yum list installed** | lists all installed packages |
Line 18: Line 54:
 | **yum install --downloadonly --downloaddir=**<​directory>​ <​application>​\\ **yumdownloader** <​application>​ | downloads a specified package from the repository | | **yum install --downloadonly --downloaddir=**<​directory>​ <​application>​\\ **yumdownloader** <​application>​ | downloads a specified package from the repository |
 | **yumdownloader --resolve** <​application>​ | downloads a specified package and all its dependencies from the repository | | **yumdownloader --resolve** <​application>​ | downloads a specified package and all its dependencies from the repository |
-| **yum reinstall** <​application>​ | reinstalls a specified package by the same version | +| **yum** ​(**local**)**install** <​package>​ | installs a package from a particular directory, possible dependencies are resolved by repositories |
-**yum localinstall** <​package>​ | installs a package from a particular directory, possible dependencies are resolved by yum repositories |+
 | **yum groupinstall** <​package_group>​ | installs a specified group of packages including possible dependencies\\ ''#​ yum groupinstall KDE''​ | | **yum groupinstall** <​package_group>​ | installs a specified group of packages including possible dependencies\\ ''#​ yum groupinstall KDE''​ |
 +| **yum reinstall** <​application>​ | reinstalls a specified package by the same version |
 | **yum update** | updates all installed packages (option „exclude“ in ///​etc/​yum.conf//​ defines packages to be excluded from the update or installation process) | | **yum update** | updates all installed packages (option „exclude“ in ///​etc/​yum.conf//​ defines packages to be excluded from the update or installation process) |
 | **yum update** <​application>​ | updates a specified package | | **yum update** <​application>​ | updates a specified package |
-| **yum localupdate** <​package>​ | updates a package from a particular directory, possible dependencies are resolved by yum repositories |+| **yum** (**local**)**update** <​package>​ | updates a package from a particular directory, possible dependencies are resolved by repositories |
 | **yum groupupdate** <​package_group>​ | updates a specified group of packages including possible dependencies | | **yum groupupdate** <​package_group>​ | updates a specified group of packages including possible dependencies |
 | **yum downgrade** <​application>​ | downgrades a package from the version currently installed to the previous version | | **yum downgrade** <​application>​ | downgrades a package from the version currently installed to the previous version |
Line 29: Line 65:
 | **yum groupremove** <​package_group>​ | removes a group of packages including possible dependencies | | **yum groupremove** <​package_group>​ | removes a group of packages including possible dependencies |
 | **yum repolist** (<​argument>​) | lists all enabled repositories (their id and name), if argument **enabled**,​ **disabled** or **all** is used, the particular type of repositories is displayed | | **yum repolist** (<​argument>​) | lists all enabled repositories (their id and name), if argument **enabled**,​ **disabled** or **all** is used, the particular type of repositories is displayed |
-| **createrepo** <​directory>​ | creates a repository from specified directory containing rpm packages, **-s** <​checksum_type>​ uses a specified checksum type, **-v** detailed output\\ ''#​ createrepo -s sha redhat.repo''​ |+| **createrepo** <​directory>​ | creates a local repository from the specified directory containing rpm packages, **-s** <​checksum_type>​ uses a specified checksum type, **-v** detailed output\\ ''#​ createrepo -s sha redhat.repo''​ |
 | **yum** <​option>​ **--enablerepo=**<​repo_id>​ | enables a specified repository (permanently in ///​etc/​yum.repos.d/<​repository>//​)\\ ''#​ yum install mplayer* --enablerepo=rpmfusion-free-updates''​ | | **yum** <​option>​ **--enablerepo=**<​repo_id>​ | enables a specified repository (permanently in ///​etc/​yum.repos.d/<​repository>//​)\\ ''#​ yum install mplayer* --enablerepo=rpmfusion-free-updates''​ |
 | **yum** <​option>​ **--disablerepo=**<​repo_id>​ | disables a specified repository (permanently in ///​etc/​yum.repos.d/<​repository>//​) | | **yum** <​option>​ **--disablerepo=**<​repo_id>​ | disables a specified repository (permanently in ///​etc/​yum.repos.d/<​repository>//​) |
-| **yum clean all** | removes all cached data saved during the package installations\\ (///​var/​cache/​yum/​repository/​packages//​) |+| **yum clean all** | removes all cached data saved during the package installations (///​var/​cache/​yum/​repository/​packages//​) |
 | **yum-complete-transaction** | completes failed or aborted yum transactions (updates) | | **yum-complete-transaction** | completes failed or aborted yum transactions (updates) |
 | **yum history** | displays the transaction history | | **yum history** | displays the transaction history |
 | **yum history info** <ID> | displays detailed information about a specified transaction | | **yum history info** <ID> | displays detailed information about a specified transaction |
-| **yum history undo** <ID> | reverts all changes within a specified transaction (removes/installs software) |+| **yum history undo** <ID> | reverts all changes within a specified transaction (uninstalls/installs software) |
 \\ \\
-^ RPM ^ especially ​for rpm packages of Fedora and Red Hat distributions ^+^ RPM ^ for rpm packages of Red Hat, Fedora, CentOS and SUSE distributions ^
 | **rpm -qa** | lists all installed packages | | **rpm -qa** | lists all installed packages |
 | **rpm -q** <​application/​package>​ | prints an installed package name and version | | **rpm -q** <​application/​package>​ | prints an installed package name and version |
Line 64: Line 100:
 | **rpm -Va** | verifies the correct contents of all installed packages with rpm database | | **rpm -Va** | verifies the correct contents of all installed packages with rpm database |
 \\ \\
-^ UP2DATE ^ especially ​for rpm packages of older Red Hat distributions ^+^ UP2DATE ^ for rpm packages of older Red Hat distributions ^
 | **up2date --show-available** | lists all available packages to be installed | | **up2date --show-available** | lists all available packages to be installed |
 | **up2date --showall** | lists all packages (installed and available) | | **up2date --showall** | lists all packages (installed and available) |
Line 76: Line 112:
 | **up2date --configure** | sets the program options; the configuration file is ///​etc/​sysconfig/​rhn/​up2date//,​ the packages are usually saved into ///​var/​spool/​up2date//​ | | **up2date --configure** | sets the program options; the configuration file is ///​etc/​sysconfig/​rhn/​up2date//,​ the packages are usually saved into ///​var/​spool/​up2date//​ |
 \\ \\
-^ APT ^ especially ​for deb packages of Debian ​distribution ​^+^ APT ^ for deb packages of Debian ​and Ubuntu distributions ​^
 | **dpkg -l** | lists all installed packages | | **dpkg -l** | lists all installed packages |
 | **apt-cache show** <​application>​ | prints detailed information about a specified package | | **apt-cache show** <​application>​ | prints detailed information about a specified package |
Line 90: Line 126:
 | **apt-get -u upgrade** | updates all installed packages without installing possible new dependencies,​ **-u** prints updated packages | | **apt-get -u upgrade** | updates all installed packages without installing possible new dependencies,​ **-u** prints updated packages |
 | **apt-get -u dist-upgrade** | updates all installed packages, possible new dependencies are installed (the whole distribution can be updated as well), **-u** prints updated packages | | **apt-get -u dist-upgrade** | updates all installed packages, possible new dependencies are installed (the whole distribution can be updated as well), **-u** prints updated packages |
-| **apt-get --reinstall install** <​application>​ | updates only a specified package |+| **apt-get ​install ​--only-upgrade** <​application>​ | updates only a specified package |
 | **apt-get remove** <​application>​ | removes a specified package (configuration files remain) | | **apt-get remove** <​application>​ | removes a specified package (configuration files remain) |
 | **apt-get --purge remove** <​application>​ | removes a specified package including configuration files | | **apt-get --purge remove** <​application>​ | removes a specified package including configuration files |
Line 96: Line 132:
 | **apt-get autoclean** | removes older versions of the same package | | **apt-get autoclean** | removes older versions of the same package |
 | **apt-show-versions** | prints versions of all installed packages and possibly their available updates, **-p** <​application>​ applies for a specified package only, **-u** prints only packages with available updates, **-a** prints all available versions of the package | | **apt-show-versions** | prints versions of all installed packages and possibly their available updates, **-p** <​application>​ applies for a specified package only, **-u** prints only packages with available updates, **-a** prints all available versions of the package |
 +\\
 +^ ZYPPER ^ for rpm packages of SUSE distribution ^
 +| **zypper packages --not-installed-only** | lists all available packages to be installed |
 +| **zypper packages --installed-only** | lists all installed packages |
 +| **zypper packages** | lists all packages (installed and available) |
 +| **zypper list-updates** | lists available updates of installed packages |
 +| **zypper info** <​application>​ | prints detailed information about a specified package |
 +| **zypper what-provides** <​file>​ | prints a package (both installed and available) to which the specified file belongs |
 +| **zypper search** <​application>​ | prints a list of packages related to a specified application |
 +| **zypper install** <​application>​ | installs a specified package including possible dependencies |
 +| **zypper install --download-only** <​application>​ | downloads a specified package from the repository |
 +| **zypper install -f** <​application>​ | reinstalls a specified package by the same version |
 +| **zypper update** | updates all installed packages; command **zypper al** <​application>​ excludes the package from the update or installation process, **zypper rl** <​application>​ cancels removal of the package from the update or installation process and **zypper ll** prints packages that are excluded from the update or installation process |
 +| **zypper update** <​application>​ | updates a specified package |
 +| **zypper remove** <​application>​ | removes a package including possible dependencies |
 +| **zypper repos** | lists all repositories (their id, name and status) |
 +| **zypper addrepo** <​directory>​ <​repo_name>​ | creates a local repository from the specified directory containing rpm packages |
 +| **zypper clean --all** | removes all cached data saved during the package installations |
 +| **cat /​var/​log/​zypp/​history** | displays the transaction history |
 \\ \\
 ^ SRC ^ for compiling packages from the source code ^ ^ SRC ^ for compiling packages from the source code ^
Last modified: 2019/04/12 20:12 by Miroslav Bernát

visits: