Linux Software Installation rpm, Srpm,yum features

Source: Internet
Author: User

1.linux Software Installation methods, commonly used are:

1) Dpkg:debian Linux community developed, use of Linux version has, B2f,ubuntu, etc.

2) RPM: Originally developed by Red Hat Company, the use of the version has Fedora,centos,suse and so on.

2.RPM (RedHat Package Manager): is a database record way to install the software you need into a set of management mechanisms for your Linux system.

3. Software Installation directory:

1)/etc: directory where some configuration files are placed

2)/usr/bin: Some executable file cases

3)/usr/lib: Dynamic link library used by some programs

4)/usr/share/doc: Some basic software manuals and documentation

5)/usr/share/man: Some man page files

4.RPM-IVH package_name: Install packages, parameters,

1)-i:install, install the software

2)-V: View more detailed installation Information screen

3)-H: Displays the installation progress in the installation information column

Pachage_name can be a URL, and RPM only uses ROOT to execute this command.

4)--nodeps: When a software attribute dependency fails to install, but you insist on installing it, this may cause the software to not work properly

5)--replacefiles: If the installation of "a file has been installed on your system" of the information, and perhaps the version of the information may be inappropriate, you can use this parameter to directly overwrite the file. However, the covered action is not resilient, so it may cause other software to use the problem

6)--replacepkgs: Reinstall a software that has already been installed. If you install a bunch of RPM software, you can use RPM-IVH *.rpm, but if the software is already installed, the system will appear that the software has installed information, so that the installation can not continue, this option is available to reinstall.

7) complexes of--force:--replacefiles and--replacepkgs

8)--test: Test whether a software can be installed in the current environment

9)--justdb: This option can be used to update information about the software in the database when the RPM database is damaged or if some cause errors occur.

--nosignature: This option can skip the data signature check

One)--prefix new path: When you want to install the software to a different non-default directory.

--noscripts: Use this option when you do not want the software to automatically execute certain system instructions during the installation process.

-U: Update the software and install it directly when the system does not have a software installed

-F: Updates the software and does not install a software when the system is not installed

5.RPM-QA;RPM-Q[LICDR] installed software name; RPM-QF exists in a file name above the system, RPM-QP[LICDR] A file name not installed: RPM query related instructions (mainly provided by/var/lib/rpm/), options,

1)-Q: Query only, the following software is installed

2)-qa: List all the software names that have been installed on the native Linux system

3)-qi: List The details of the software, including the developer, version, description, etc.

4)-QL: List the full file name of all files and directories of the software

5)-QC: Lists all the configuration files for the software (file name under/etc/)

6)-QD: Lists all the documentation for the software (related to man).

7)-QR: Lists the files contained in the dependent software related to the software

8)-QF: The file name that is appended to it, find out which of the installed software this file belongs to.

9) Query the information in a RPM file,-qp[icdlr]:-qp all the parameters followed by the above instructions consistent. But the purpose is only to find the information in an RPM file, not the installed software information.

6.RPM Authentication and digital signature: Rpm-va;rpm-v The name of the installed software, RPM-VP the file name of an RPM file, rpm-vf a file on the system. Parameters

1)-V: The name of the software, if the file contained in the software has been changed, will be listed

2)-va: List all the files that may have been changed on the current system

3)-VP: The file name is appended to it and lists the files that may have been changed in the software.

4)-VF: Lists If a file has been altered.

The first 8 messages in the executed record are:

S: File size has been changed

M: Whether the type of archives or the entire township of the archives has been changed,

5:md5 the contents of this fingerprint code have been modified.

D: The primary and secondary code of the device has been changed

L:link Path has changed

U: The owner of the file has changed

G: The group that owns the file has been changed

T: The file's resume time has been modified

Next is the file type, which mainly includes:

C: Configuration file

D: File Data file

G: Files without a host, that is not part of any software (ghost files)

L: License file (license)

R: Readme file (Readme)

7.RPM-E software name: Uninstalling software

8.RPM-REBUILDDB: Rebuilding the/VAR/LIB/RPM database

9.rpmbuild [-Options] srpm package: Instructions for operating the srpm (source code), parameters

1)--rebuild: The srpm is compiled, packaged, and then the rpm file is generated, but the resulting file is not installed on the system. Then use the RPM command to install, it should be noted that the installation of the use of absolute path.

2)--recompile: Compile, Package and install.

10.SRPM use of the path with the required software

1)/usr/src/redhat/specs: Configuration files, such as information parameters of this software, setting items, etc.

2)/usr/src/redhat/sources: The original file of the software (*.tar.gz's profile) and config file

3)/usr/src/redhat/build: In the process of compiling, some staged data will be placed in this directory.

4)/usr/src/redhat/rmps: After compiling, and after successful compilation, the package completed files are placed in this directory.

5)/usr/src/redhat/srpms: Similar to RPMs, this place is the srpm package file.

11.rpmbuild [-ba] [-bb] File name: Compile the data under/usr/src/redhat or simply package it into RPM or srpm. Parameters

1)-ba: Compile and generate both RPM and srpm files

2)-BB: Compile only into RPM file

12.yum [option] [Query work items] [related parameters]: Online installation software, option options available,

1)-y: This option will automatically provide a yes response when Yum waits for user input

2)--install=/some/path: Install the software in/some/path instead of using the default path

3) Install: followed by the software to be installed

4) Update: followed by the software to be upgraded

5) Remove: followed by the software to be uninstalled

The relevant parameters are:

1) Search: Search for a software name or a description of important keywords

2) List: Lists the software names and versions currently managed by Yum, similar to RPM-QA

3) Info: Lists more detailed information about the software currently managed by Yum. Similar Rmp-qai

4) provides: From the file to search software. Similar RPM-QF

13.yum [Group function] [software Group]: Install software group, parameters,

1) Grouplist: List all available kit groups, eg:development tools, etc.

2) GroupInfo: After group_name, you can find out all the package names included in the group

3) Groupinstall: Install the entire software group

4) Groupremove: Remove a suite Group


This article is from "Tiger Brother's Blog" blog, please be sure to keep this source http://7613577.blog.51cto.com/7603577/1605474

Linux Software Installation rpm, Srpm,yum features

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.