
If you need to force a specific distribution, release/version, or evenĪrchitecture, you can also do that (e.g. All of them serve as a front-end to the dpkg utility, which actually handles operations and in some cases can be invoked directly.To install packages, you can quickly setup the repository automatically ( recommended): Recent releases include apt command which is a unified interface for more traditional apt-get and apt-cache tools. deb as package format and APT, the Advanced Packaging Tool, for most operations. Systems like Ubuntu, Linux Mint and others use. Zypper remove PACKAGE # remove given package Zypper update PACKAGE # update given package Zypper in PACKAGE # install or updates a package Zypper se -requires PACKAGE # list all packages depended on the package Zypper se -provides -match-exact FILE # search packages for the given file Zypper se SEARCH_STRING # search repositories for the given string Zypper namerepo REPO_INDEX REPO_NAME # rename given repository Zypper addrepo REPO_URL REPO_NAME # add a new repository

Zypper refresh REPO_NAME # refresh repository information zypper zypper repos -u # list the configured repositories, their indexes and URLs Repositories are managed via editing *.repo files in the /etc/yum/repos.d/ directory or with yum-config-manager command (run yum whatprovides yum-config-manager to find out which package provides it). Rpm -qlp PACKAGE_FILE # same as above, but for a package file Rpm -ql PACKAGE # list files in a package

Yum list installed # list all installed packages Yum list all # list all packages available Yum update PACKAGE # update given package(s) Yum install PACKAGE # install given package(s) Yum whatprovides SEARCH_STRING # list packages which provide given command or a file Yum deplist PACKAGE # list package dependencies Yum search all SEARCH_STRING # same as above, but search all fields, such as description Yum search SEARCH_STRING # search packages for the given string Yum makecache # download and refresh all the metadata

yum/dnf/rpm yum repolist # list the configured repositories The package managers are yum for CentOS and some others, dnf a yum fork used in recent Fedora distributions and zypper a command line interface of ZYpp package management used in openSUSE project. These include RedHat family members, such as CentOS, Fedora or Scientific Linux, and also openSUSE, also known as SUSE Linux. Basic Console Commands for Package Managers RPM-based Linux Distributions
