Linux basic configuration and Management 6 RPM package management

Source: Internet
Author: User
Tags ftp

1 YUM

1 RPM Package Form management software although convenient, but need to manually solve the software package dependencies, a lot of time to install a software need to first install 1 or more other software, but we yum can solve this problem

2 YUM (Yellowdog Updater Modified) is an RPM front-end program designed to solve the rpm dependency

The characteristics of the 3 Yum are as follows

Automatically resolve dependencies

To group rpm and install based on a group

Introduce the concept of warehouse to support multiple warehouses

Simple configuration

4 Yum introduced the concept of warehouse, the warehouse used to store all the RPM package, when the use of Yum to install a program, if there is a dependency, will automatically find the dependent software in the warehouse and install

5 warehouses can be local, or can be centralized through the Http,ftp,nfs form of a unified network warehouse

2 Yum Warehouse

1 Yum use warehouse to save management RPM software package, warehouse configuration file is saved in/ETC/YUM/REPOS.D directory

2 warehouse can use FILE,HTTP,FTP,NFS mode

3 Yum configuration file must be with, repo end

41 Profiles can hold configuration information for multiple warehouses

More than one configuration file can exist in the 5/etc/yum.repos.d/directory

3 Yum Basic command

1 Install the specified software yum install Software-name

2 Uninstall the specified software yum remove software-name

3 Upgrading the specified software yum update software-name

4 Yum Query

Search: Yum search keyword

List: Yum list (all | installed |recent |updates)

Display information for the specified software: Yum info packagename

Query RPM software contains target files: Yum whatprovides filename

4 Create Yum Warehouse manually

1 copy all rpm files into a folder

2 manual installation of Createrepo software via RPM command

3 Run command createrepo-v/rpm-directory

4 If you have grouped information, use the-G parameter to specify the grouped files when you run the command

5 after the creation of this machine can be used directly through the file, if necessary as an external Yum warehouse server, you can use HTTP, FTP or NFS to share the way out

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.