User Tools

Site Tools


software

Software


YUM especially for rpm packages of Fedora and Red Hat 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 all packages containing the name of the application
yum deplist <application> lists of all dependencies (including packages) for a particular application
yum info <application> prints detailed information about a particular package
yum groupinfo <package_group> prints detailed information about a particular group of packages
yum (what)provides <file> prints a package (installed or available) to which the particular file belongs
yum search <application> prints a list of packages related to a particular application
yum install <application> installs a particular package including eventual dependencies
yum install --downloadonly --downloaddir=<directory> <application>
yumdownloader <application>
downloads only a particular package from a repository
yum reinstall <application> reinstalls a particular package by the same version
yum localinstall <path_to_package> installs a package from a particular directory, eventual dependencies are resolved by yum repositories
yum groupinstall <package_group> installs a particular group of packages including eventual dependencies
# yum groupinstall KDE
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 particular package
yum localupdate <path_to_package> updates a package from a particular directory, eventual dependencies are resolved by yum repositories
yum groupupdate <package_group> updates a particular group of packages including eventual dependencies
yum downgrade <application> downgrades a package from the version currently installed to the previously highest version
yum remove / erase <application> removes a package including eventual dependencies
yum groupremove <package_group> removes a group of packages including eventual 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 repository from a particular directory containing rpm packages, -s <checksum_type> uses a particular checksum type, -v detailed output
# createrepo -s sha redhat.repo
yum <option> --enablerepo=<repo_id> enables a particular repository (permanently in /etc/yum.repos.d/<repository>)
# yum install mplayer* --enablerepo=rpmfusion-free-updates
yum <option> --disablerepo=<repo_id> disables a particular 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 particular transaction
yum history undo <ID> reverts all changes within a particular transaction (removes / installs software)


RPM especially for rpm packages of Fedora and Red Hat 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 <path_to_package> prints detailed information about a downloaded package
rpm -ql <application / package> prints the files belonging to an installed package
rpm -qlp <path_to_package> prints the files belonging to a downloaded package
rpm -qc <application / package> prints configuration files belonging to an installed package
rpm -qcp <path_to_package> prints configuration files belonging to a downloaded package
rpm -qf <file> prints a package to which the particular file belongs
rpm -qR <application / package> prints a list of dependencies for a particular application or package
rpm -ivh <path_to_package> installs a downloaded package, -i installation, -v detailed output, -h progression
rpm -ivh --test <path_to_package> preview installation, checks and reports eventual dependencies and conflicts among the packages
rpm -ivh --nodeps <path_to_package> installs a downloaded package without checking any dependencies
rpm -Uvh <path_to_package> installs a downloaded package or updates the package currently installed to a newer version
rpm -Uvh --replacepkgs <path_to_package> reinstalls a downloaded package
rpm -Fvh <path_to_package> updates the package currently installed to a newer version
rpm -e <application> removes a particular package
rpm -ivh <repository> installs a particular 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 especially 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 particular package
up2date --whatprovides <file / application> prints a package to which a particular 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 especially for deb packages of Debian distribution
dpkg -l lists all installed packages
apt-cache show <application> prints detailed information about a particular package
apt-cache search <application*> lists all packages containing the name of the application
apt-cache depends <application> lists all packages on which a particular application depends
apt-cache whatdepends <application> lists all packages depending on a particular application
apt-cache pkgnames lists all packages (installed and available)
apt-file list <application> prints the files belonging to a particular (not even installed) package
apt-file search <file> prints a package (not even installed) to which the particular file belongs
apt-file update updates the database with information about the packages nad their files
apt-get install <application> installs a particular package including eventual 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 eventual new dependencies, -u prints updated packages
apt-get -u dist-upgrade updates all installed packages, eventual new dependencies are installed (the whole distribution can be updated as well), -u prints updated packages
apt-get --reinstall install <application> updates only a particular package
apt-get remove <application> removes a particular package (configuration files remain)
apt-get --purge remove <application> removes a particular 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 eventually their available updates, -p <application> applies for a particular package only, -u prints only packages with available updates, -a prints all available versions of the package


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 given, an interactive mode starts
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: 2018/03/30 16:02 by Miroslav Bernát

visits: