Linux Starter Foundation--linux Software Management rpm

Source: Internet
Author: User
Tags ftp protocol asymmetric encryption

Because Linux primer is based on CentOS, it's about software package management on CentOS. Ubuntu Package Management has these: Ubuntu Package management, Package Management Guide, Ubuntu package management.

Linux Software Management: RPM package Management source code form the vast majority of open source software is published directly in source code form
The source code is typically packaged into tar.gz archive compressed files
The program source code needs to be compiled manually into binary form before it can be run using
Source code Basic compilation process:
1./configure Check the compilation environment, related library files, and configuration parameters and generate makefile
2 make compile the source code to generate the executable file
3 make install installs the resulting executable file to the current computer
Software in the form of source code is cumbersome to use, but compatibility and control are better.
Open source software generally uses a lot of other open source software features, so open source software will have a lot of dependencies (using a software need to install other software first)
Disadvantages of RPM Source code form: complex operation, long compilation time, very prone to errors
Advantages of source code form: Applicable to all systems, customizable
For ease of use, Eric Troan developed rpm (Reahat package Manager)
RPM simplifies the installation management of open source software by compiling source code into executables based on a specific platform system and saving dependencies.
RPM design goals are as follows:
Easy to use
Publish with a single package format file (. rpm file)
Can be upgraded
Tracking software Dependencies
Basic Information Inquiry
Software validation Features
Multi-platform Support
Common naming conventions for rpmrpm packages
Softname-version number-software platform. rpm
RPM Base command:
Installation software: Rpm-i software.rpm
Uninstall software: RPM-E software
Upgrade form install: Rpm-u software-new.rpm
RPM supports installing software via HTTP, FTP protocol:
RPM-IVH http://www.linuxcast.net/software.rpm
The following parameters can be added:
-V Show More information
-H Show progress bar
RPM query RPM will save a lot of information related to the software, can be queried by the following command:
RPM-QA list all installed RPM software
RPM-QF filename Query destination file belongs to that RPM package
Rpm-qi PackageName query specifies information for installed RPM software
RPM-QL packagename query Specifies the files that are included in the installed RPM software
RPM-QIP software.rpm Query rpm file information
RPM-QLP software.rpm to query the files contained in the RPM file
RPM verification software may be maliciously modified during the propagation process, so the modern system has been added to the software verification function for security.
Authentication typically uses an asymmetric encryption algorithm, so a secret key is required
Import secret key:
RPM--import rpm-gpc-key-centos-6
Verifying RPM files
Rpm-k software.rpm
Verify that the software is installed
Rpm-v software.rpm


Linux Starter Foundation--linux Software Management 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.