User Tools

Site Tools


software

Software


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 installed lists all installed packages
yum list lists all packages (installed and available)
yum grouplist lists all groups of packages (installed and available)
yum list extras lists all installed packages that are not available in any configured repository
yum list updates lists available updates of installed packages
yum list recent lists packages recently added into the repositories
yum list <application> lists the packages (both installed and available) containing the application name
yum deplist <application> lists of all dependencies (including packages) for a specified application
yum info <application> prints detailed information about a specified package
yum groupinfo <package_group> prints detailed information about a specified group of packages
yum (what)provides <file> prints a package (both installed and available) to which the specified file belongs
yum search <application> prints a list of packages related to a specified application
yum install <application> installs a specified package including possible dependencies
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
yum (local)install <package> installs a package from a particular directory, possible dependencies are resolved by repositories
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 <application> updates a specified package
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 downgrade <application> downgrades a package from the version currently installed to the previous version
yum remove / erase <application> removes a package 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
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> --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-complete-transaction completes failed or aborted yum transactions (updates)
yum history displays the transaction history
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)


RPM for rpm packages of Red Hat, Fedora, CentOS and SUSE distributions
rpm -qa lists all installed packages
rpm -q <application/package> prints an installed package name and version
rpm -qi <application/package> prints detailed information about an installed package
rpm -qip <package> prints detailed information about a downloaded package
rpm -ql <application/package> prints the files belonging to an installed package
rpm -qlp <package> prints the files belonging to a downloaded package
rpm -qc <application/package> prints configuration files belonging to an installed package
rpm -qcp <package> prints configuration files belonging to a downloaded package
rpm -qf <file> prints a package to which the specified file belongs
rpm -qR <application/package> prints a list of dependencies for a specified application/package
rpm -ivh <package> installs a downloaded package, -i installation, -v detailed output, -h progression
rpm -ivh --test <package> preview installation, checks and reports possible dependencies and conflicts among the packages
rpm -ivh --nodeps <package> installs a downloaded package without checking any dependencies
rpm -Uvh <package> installs a downloaded package or updates the package currently installed to a newer version
rpm -Uvh --replacepkgs <package> reinstalls a downloaded package
rpm -Fvh <package> updates the package currently installed to a newer version
rpm -e <application> removes a specified package
rpm -ivh <repository> installs a specified repository
# rpm -ivh rpm.livna.org/release7.rpm
rpm --import <public_key> imports a public (GPG) key for a particular repository in order to make sure that a downloaded package really comes from the original repository
# rpm --import rpm.livna.org/RPM-LIVNA-GPG-KEY
rpm -qa gpg-pubkey prints all imported public (GPG) keys
rpm --checksig / -K <package> checks all the digests and signatures contained in the package to ensure its integrity and origin (this is done automatically during the package installation provided a particular public (GPG) key has been imported before)
rpm -V <application/package> verifies the correct contents of the package with rpm database
rpm -Vf <file> verifies the correct contents of the package file with rpm database
# rpm -Vf /bin/ls
rpm -Va verifies the correct contents of all installed packages with rpm database


UP2DATE for rpm packages of older Red Hat distributions
up2date --show-available lists all available packages to be installed
up2date --showall lists all packages (installed and available)
up2date --show-orphans lists all installed packages that are not available in any configured repository
up2date -l lists available updates of installed packages
up2date -d downloads packages to be installed or updated
up2date -i installs downloaded packages
up2date -u updates downloaded packages
up2date <application> updates a specified package
up2date --whatprovides <file/application> prints a package to which a specified file or application belongs
up2date --configure sets the program options; the configuration file is /etc/sysconfig/rhn/up2date, the packages are usually saved into /var/spool/up2date


APT for deb packages of Debian and Ubuntu distributions
dpkg -l lists all installed packages
apt-cache show <application> prints detailed information about a specified package
apt-cache search <application> lists all packages containing the name of the application
apt-cache depends <application> lists all packages on which a specified application depends
apt-cache whatdepends <application> lists all packages depending on a specified application
apt-cache pkgnames lists all packages (both installed and available)
apt-file list <application> prints the files belonging to a specified (not even installed) package
apt-file search <file> prints a package (installed and available) to which the specified file belongs
apt-file update updates the database with information about the packages and their files
apt-get install <application> installs a specified package including possible dependencies, -d only downloads a package
apt-get update updates a local list of packages (needed before each update)
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 install --only-upgrade <application> updates only a specified package
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 check updates a package cache and checks for broken dependencies
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


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
./configure executes a configuration script of a source package (from the package directory containing the script) which checks the system, reads the variables and creates associate files needed for the package compilation, --prefix=<directory> specifies a directory for the installation (by default /usr/local)
make creates a binary executable program from the source code (compilation) based on data from the associate files created during the package configuration
make install installs a program
checkinstall creates a package from the binary program which is after the installation added to the database of the installed packages, -R rpm package, -D deb package; if no option is specified, it works interactively
make clean removes unnecessary, mostly compiled files, created during the compilation
make distclean removes all files created during the package configuration and compilation
make uninstall removes a program (provided file "Makefile" exists, otherwise the program files have to be removed manually)
Last modified: 2019/05/22 10:41 by Miroslav Bernát

visits: