Rpm for managing software packages in Linux

Source: Internet
Author: User
In Linux, the full name of rpm is RedHatPackageManager, which is developed by RedHat. Rpm is a set of management program RPM that installs the required kits to the linux host in a database record mode. The main advantages are as follows: (1) thanks to the compilation completed and... rpm for managing software packages in Linux
1. the full name of RPM is "RedHat Package Manager", which is developed by RedHat. Rpm is a set of management program RPM that installs the required kits to the linux host in a database record mode. The main advantages are as follows: (1) Since compilation is complete and packaging is complete, so it is easy to install (2). because the suite information has been recorded in the database of the linux host, it is convenient to query, upgrade, and uninstall. The RPM database can use the rpm -- rebuilddb command to establish the/var/lib/rpmRPM database. RPM Package name format: name-version-release.arch.rpm name-version-release-release.arch.rpm version: Master version. this version number. release version. platform. rpm main version changes: Major improvement version changes: a sub-function changes significantly. Release Number: fixed some bugs, adjusted a little bit of function 2, detailed usage of Rpm commands (1), RPM software installation command: rpm-I/PATH/TO/PACKAGE_FILE: installation package rpm-h: TO # display the installation progress, each # indicates 2% rpm-v: displays the installation details rpm-vv: more detailed information rpm-ivh: usually used in combination with rpm -- nodeps: ignore dependencies. Rpm -- replacepkgs | repackage: reinstall and replace the original installation. Rpm-ivh -- oldpackage: Downgrade the installation. Rpm-ivh -- force: forced installation. you can reinstall or downgrade the rpm -- test: only test whether there is any dependency. (2) run the rpm software query command: rpm-q PACKAGE_NAME: query whether the specified package is rpm-qa: query all packages installed with rpm-qi PACKAGE_NAME: query the instructions of the specified package rpm-ql PACKAGE_NAME: query the file list generated after the specified package is installed rpm-qc PACKAGE_NAME: query the configuration file rpm-qd PACKAGE_NAME: query the help file rpm-q -- scripts PACKAGE_NAME: query the script rpm-qf/path/to/somefile contained in the specified package: when querying the specified file, if an rpm package is not installed, we need TO query its description information. after installation, the generated file rpm-qpi/PATH/TO/PACKA GE_FILE I: Software description rpm-qpl/PATH/TO/PACKAGE_FILE l: software installation and generation file list (3). rpm software upgrade command: rpm-Uvh/PATH/TO/NEW_PACKAGE_FILE: if the old version is installed, upgrade it; otherwise, install rpm-FVL/PATH/TO/NEW_PACKAGE_FILE: if the old version is installed, upgrade it; otherwise, exit the rpm-Uvh -- oldpackage package earlier: Downgrade (4), rpm uninstall command: This package cannot be depended on by other software packages by rpm-e PACKAGE_NAME rpm -- nodeps: ignore dependency, other software dependent on this package may not work properly. Run the "rpm-V PACKAGE_NAME" command to verify the software of the kernel and rpm. If no output information is displayed, it is normal. Fh: after zsh is installed, modify the configuration file metadata and re-build the database with rpm: database location:/var/lib/rpm -- rebuilddb: re-build the database. Rpm -- initdb: initialize the database. if it is not created, it is not required. Verify source legitimacy and software integrity: Red Hat Public key: ls/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release: import the key file rpm-K/PATH/TO/PACKAGE_FILE dsa, gpg: verify the source legality, that is, verify the signature; you can use -- nosignature, skip this sha1, md5: verify the integrity of the software package; you can use -- nodigest to skip this rpm-K -- nodigest/PACKAGE_NAME: to verify the signature only. Fg: integrity check of zsh file packages

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.