Changes between Version 9 and Version 10 of RpmHowToEndUsers


Ignore:
Timestamp:
Aug 23, 2011, 9:59:19 PM (13 years ago)
Author:
dmik
Comment:

Added handy RPM commands

Legend:

Unmodified
Added
Removed
Modified
  • RpmHowToEndUsers

    v9 v10  
    44
    55== Handy YUM and RPM commands
     6
     7YUM is a command line tool used to install software packages from the remote repositories which involves automatic downloading of package files and all their requirements, subsequent unpacking and unattended installation of the package contents to the appropriate system directories. This tool is ideal for end users. Everything you need to know is a name of the package you want to install.
    68
    79||'''yum install''' __pkg__              ||Install the latest version of the package named __pkg__ (including all packages it needs for its work, if any)
     
    1113||'''yum update''' __pkg__               ||Update only the package named __pkg__ (and packages it needs, if newer versions of them are required)
    1214||'''yum info''' __pkg__                 ||Show information about the package named __pkg__
     15||'''yum search''' foobar                ||Show all packages containing "foobar" in the name, summary or description fields
    1316||'''yum list installed'''               ||List all installed packages
    14 ||'''yum list avaliable''' qt*           ||List all available packages with names starting from "qt"
    15 ||'''yum list'''   *zip*                 ||List all packages containing "zip" in names (both installed and available)
     17||'''yum list avaliable''' foo*          ||List all available packages with names starting with "foo"
     18||'''yum list''' *bar*                   ||List all packages containing "bar" in names (both installed and available)
    1619||'''yum clean packages'''               ||Delete all downloaded files containing installed packages (packages themselves are not uninstalled)
     20
     21RPM is a low-level tool used to perform operations on package files directly and also to query the local database of installed packages in cases where YUM doesn't provide the required information. End users rarely need to use this tool.
     22
     23||||'''rpm -i''' __pkg__.rpm               ||Install the package contained in the file "__pkg__.rpm" (all required packages must be already installed)
     24||'''rpm -qi -p''' __pkg__.rpm             ||'''rpm -qi''' __pkg__             ||Display information about the package file "__pkg__.rpm" or about the installed package __pkg__ (name, version, etc.)
     25||'''rpm -qR -p''' __pkg__.rpm             ||'''rpm -qR''' __pkg__             ||Display the requirements of the package file "__pkg__.rpm" or of the installed package __pkg__
     26||'''rpm -ql -p''' __pkg__.rpm             ||'''rpm -ql''' __pkg__             ||List all files contained in the package file "__pkg__.rpm" or of the installed package __pkg__
     27||'''rpm -q --changelog -p''' __pkg__.rpm  ||'''rpm -q --changelog''' __pkg__  ||Print the list of changes provided by the version of the package contained in "__pkg__.rpm" or by the installed package __pkg__
     28||||'''rpm -qf''' /full/path/to/file       ||Search for an installed package owning the file "/full/path/to/file"
    1729
    1830You may find more detailed information about YUM and RPM using the following links: