Rpm for managing software packages in Linux

Source: Internet
Author: User

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.