System software package Management

Source: Internet
Author: User

1.rpm Tools

Rpm:redhat Package Manager, Redhat's unique software Installation tool, is designed to be open, not only on the Redhat platform, but also on SuSE.


RPM package by '-', '. ' Divided into several parts, such as abrt-cli-2.0.8-15.el6.centos.i686.rpm, ' ABRT-CLI ' is the package name;

' 2.0.8-15 ' is the version number (in general, ' 2 ' is the major version number; ' 0 ' is the minor version number, the even is stable, the odd is the development version;

' 8 ' is the number of bug fixes in the current version; ' El6 ' represents Redhat Enterprise Edition 6; ' CentOS ' indicates that it is used on CentOS;

' i686 ' refers to the platform type (i386, x86_64); some RPM packages do not reach the platform type, but ' noarch ' means that the package does not

Hardware platform limitations.


Install an RPM package: Rpm-ivh xxxxxxx.rpm--force

-i:install Installation

-V: Visualize, display the installation process

-H: Show progress bar

--force: Mandatory installation, even if overwriting files belonging to other packages

--nodeps: When the RPM package to be installed depends on other packages, install this package even if the dependent packages are not installed

-U: Upgrade RPM-UVH xxxx.rpm

-E: Uninstall rpm-e xxxxx (package name), uninstall, only need to write the package name, without platform information and suffix name

-q:query, query whether a package has been installed, also only need package name, without platform information and suffix name

-QA: Query all installed RPM packages in the system

-QL: Querying for files generated after a package is installed

-QF: Reverse query, you can query a command or a file by which package installation, note the use of single quotation marks, must use absolute path

-qi: Querying the details of a package

-QC: Querying the configuration file for a package

-QR: Querying the dependencies of a package


RPM--REBUILDDB

RPM--INITDB


echo $? Viewing the return value, if 0, indicates that the previous command executed successfully, and that the non-0 description was unsuccessful.


2.yum Tools

Yum List view all available packages in warehouse third column @ switch indication already installed

Yum Remove Uninstall

Yum Reinstall reinstall

Yum Grouplist lists kits, which are collections of a series of installation packages

Yum Groupinstall Installing a kit

Yum install-y Install a package-y indicates that the installation process does not make any inquiries

Yum Groupremove Uninstalling a Suite

Yum deplist lists dependencies for a package

Yum provides ' */vim ' to find out which package the command was installed on. Fixed wording for ' * * ' wildcard lookup

Yum Install--downloadonly--downloaddir=/tmp xxxx.rpm

Only the specified installation package is downloaded to the specified directory and is not installed. If the package is already installed, install== "reinstall

Do not specify directory, then put in/var/cache/yum/i386/6/[yum source name]



3. Local Yum Source

The name of the local Yum source must end with a. Repo, for example:

Dvd.repo

[dvd]      & nbsp;                              Yum Source name

name=localdvd                     Yum Source Description
baseurl=file:///mnt               Yum Source Path, FILE://is a fixed format
enabled=1                             1 indicates that the Yum source is available and 0 is not available
Gpgcheck=0                            0 means not checking PGP

4. Source code compilation and installation

wget httpxxxxxx download, without specifying a directory, the default download to the current directory.


In general, the source code compilation installation is divided into three steps:

First step:./configure--prefix=/usr/local/xxx Prefix Specify the installation path

After this step is completed, echo $? Check to see if the return value is 0 to confirm success

Step two: Make compiles the source code into a binary file.

After this step is completed, echo $? Check to see if the return value is 0 to confirm success

If the return value is not 0, see if the last few lines have the word ' errer '

Step Three: Make install

Read the instructions in the Readme file before compiling.




This article is from the "Eleven" blog, make sure to keep this source http://elevencup.blog.51cto.com/2643613/1627791

System software package Management

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.