Centosrpm command details

Source: Internet
Author: User
Tags ftp port number
Common rpm commands 1. install a Pack # rpm-ivh2. upgrade a Pack # rpm-Uvh3. remove a Pack # rpm-e4. installation parameters-common commands for fo rpm 1. install a package # rpm-ivh 2. upgrade a package # rpm-Uvh 3. remove a package # rpm-e 4. installation parameter -- force installation even if it overwrites files of other packages -- nodeps if the installation of this RPM package depends on other packages, even if other packages are not installed, force installation. 5. check whether a package is installed # rpm-q <rpm package name> 6. obtain the information of the installed package # rpm-qi <rpm package name> 7. list the files in this package # rpm-ql <rpm package name> 8. list the RPM packages of a file on the server # rpm-qf 9. it can be used together with several parameters # rpm-qil <rpm package name> 10. list all installed rpm packages # rpm-qa 11. list the files in an RPM Package that have not been installed into the system? # Rpm-qilp <rpm package name> <> 1. Installation Command format: rpm-I (or -- install) options file1.rpm... fileN. rpm parameter: file1.rpm... fileN. detailed file name option of the rpm package to be installed by RPM:-h (or -- hash) output hash mark (''#'') during installation -- test only tests the installation, not actually installed. -- Percent: The installation progress is displayed as a percentage. -- Excludedocs does not install the document file in the software package -- includedocs installation documentation -- replacepkgs force reinstall installed software package -- replacefiles replace files belonging to other software packages -- force ignores conflicts between software packages and files -- noscripts does not run the pre-installation and post-installation script -- prefix to install the software package to the specified path -- ignorearch does not verify the structure of the software package -- ignoreos does not check the operating system of the software package running -- nodeps does not check the dependency relationship -- ftpproxy is used as the FTP proxy -- ftpport specifies the FTP port number as the general option-v displays additional information-vv displays debugging information-root asks RPM to use the specified path as the "root directory ", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set the rpmrc file to -- dbpath to set the RPM Data Inventory Path 2: Delete command format: rpm-e (or -- erase) options pkg1... pkgN parameter pkg1... pkgN: detailed options of the software package to be deleted -- test only executes the delete test -- noscripts does not run the pre-installation and post-installation script programs -- nodeps does not check the dependency general options-vv displays debugging information -- root allows RPM use the specified path as the "root directory ", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set rpmrc file to -- dbpath set the path of the RPM data inventory to III. upgrade command format rpm-U (or -- upgrade) options file1.rpm... fileN. rpm parameter file1.rpm... fileN. rpm software package name details option-h (or -- hash) output hash mark (''#'') during installation (''#'')- -Oldpackage allows "upgrade" to an old version -- test only performs the upgrade test -- excludedocs does not install the document file in the software package -- includedocs installation documentation -- replacepkgs forcibly reinstall the installed software package -- replacefiles replacement files that belong to other software packages -- force ignores conflicts between software packages and files -- percent outputs the installation progress as a percentage. -- Noscripts does not run the pre-installation and post-installation scripts -- prefix installs the software package to the specified path -- ignorearch does not verify the structure of the software package -- ignoreos does not check the operating system of the software package -- nodeps does not check the dependency -- ftpproxy is used as the FTP proxy -- ftpport specifies the FTP port number as the general option-v displays additional information-vv displays debugging information-root asks RPM to use the specified path as the "root directory "", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set rpmrc file to -- dbpath set the path of the RPM data inventory to 4. query command format: rpm-q (or -- query) options parameter: pkg1... pkgN: query the installed software package details option-p (or ''-'') query the file of the software package-f query which software package belongs-a query all installed software packages -- whatprovides query the software package that provides functionality-g query the software package that belongs to the group -- whatrequires query all required software packages information Option show all the packages logo-I show Package Overview-l show package file list-c show configuration file list-d show document file list-s show package file list and displays the status of each file-scripts displays the installation, uninstallation, validation script-queryformat (or -- qf) display query information in the way specified by the user -- dump display all verified information for each file -- provides display functions provided by the software package -- requires (or-R) show the functions required by the software package general options-v show Additional Information-vv show debugging information-root ask RPM to use the specified path as the "root directory ", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set rpmrc file to -- dbpath set the path of the RPM data inventory to 5. verify the command format of the installed software package: rpm-V (or -- verify, or-y) options parameter pkg1... pkgN package name package option to be verified-p Verify against package file-f Verify the package to which the package belongs-a Verify all package-g Verify all group package details option -- noscripts not run the validation script -- nodeps does not verify the dependency -- nofiles does not verify the file attributes common options-v displays additional information-vv displays debugging information-root allows RPM to make the specified path "root directory ", in this way, both the pre-installation program and the post-installation program will be installed in this directory -- rcfile set rpmrc file to -- dbpath set the path of RPM data inventory to 6. verify the file syntax in the software package: rpm-K (or -- checksig) options file1.rpm... fileN. rpm parameter: file1.rpm... fileN. rpm package file name Checksig -- detailed options -- nopgp does not verify PGP signature general options-v displays additional information-vv displays debugging information-rcfile sets rpmrc file to seven, other RPM options -- rebuilddb reconstruction RPM database -- initdb creates a new RPM database -- quiet minimizes output -- help displays the help file -- version displays the current version of RPM
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.