Some knowledge of RPM packages and source packages

Source: Internet
Author: User

RPM package Local files are located:

/mnt/cdrom/packages

The disadvantage of the RPM package installation is that it has strong dependencies, is cumbersome to install, and is prone to errors due to dependencies between certain installation files.



The following is a list of RPM Package command management and some instructions:


    • RPM Package Installation Instructions:

      RPM-IVH Full Package Name

      This command is executed only if there is a local installation package, and after installation there will be a dependency prompt, just follow the dependency installation


    • RPM Package naming rules:httpd-manual-2.2.9.el5.i386.rpm

      HTTPD//For Software name

      2.2.9//For version number

      i386//For architecture

RPM//For RPM package suffix

    • RPM Package Query:

      RPM-Q package name for packet query

      -qa A For all package queries

-qi httpd i for information Query HTTPD related package information

-QL httpd Query Installed package location

-QLP Query the location where the RPM package is not installed

RPM-QF a file name to find out which RPM package the file belongs to

Note: The RPM package is installed in the default location as written by the author of the RPM package.


    • RPM Package Check:

      Rpm-v This command can show whether someone else has changed

    • RPM Upgrade and uninstallation:

      RPM-UVH Package Name Upgrade Instructions

      RPM-E Package Name Uninstall instructions

      Note: RPM provides the uninstall command is because its installation files are scattered, manual removal cumbersome, with the corresponding instructions can delete the RPM package can be



For source package installation and RPM package differences:


    • Conceptually different: one can see the source code, one cannot see, the RPM package installs up faster

    • Installation location is different: RPM package installation is the default path, while source code installation needs to specify the location, generally/usr/local/software name

    • Start Service: RPM can be started using service httpd start, and the other is/usr/local/apache2/bin/apachectl start of course RPM installation most basic boot is/etc/rc.d/init.d/ht TPD Start

    • Delete Mode: RPM package only need to execute the uninstall command, while the source code installation is only used to delete the directory







This article is from the "11309357" blog, please be sure to keep this source http://11319357.blog.51cto.com/11309357/1761913

Some knowledge of RPM packages and source 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.