Linux Learning Unit 13

Source: Internet
Author: User

Software Installation

1. Software name recognition

[abrt-addon-ccpp]-[2.1.11-19]. [El7]. [X86_64].rpm # #rpm结尾的适用与redhat操作系统

||         ||       || ||

Software name software version software application System 64-bit

2. How to install the software

1.rpm

RPM-IVHNAME.RPM # #安装,-V display procedure,-h specifies the encryption method is hash

-ename # #卸载

-qlname # #查询软件生成文件

-QLPNAME.RPM # #查询软件安装后会生成什么文件

-QA # #查询系统中安装的所有软件名称

-QA |grep Name # #查询软件是否安装

-Q Name # # ....

-QP name.rpm # #查询软件安装包安装后的名字

-QF FileName # #查看filename属于那个安装包

-IVH name.rpm--force # #强制安装

-qi Name # #查看软件信息

-KV name.rpm # #检测软件包是否被篡改

-QP name.rpm--scripts # #检测软件在安装或卸载过程中执行的动作

2.yum

Yum

Top software management tools, the most important function is to solve the dependency relationship of software

Yum can be put into use only if there is a Yum source, and the configuration source points to the file

Server Source Side

1. iso image file matching from the network up-down native system version

Rhel-server-7.1-x86_64-dvd.iso

2. Hang the Rhel-server-7.1-x86_64-dvd.iso to/mnt to access the files in the image

Mount Rhel-server-7.1-x86_64-dvd.iso/mnt

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/90/1D/wKiom1jvNkuDE06hAAAyryMrYd4674.jpg "title=" 36020170413162633508.jpg "alt=" Wkiom1jvnkude06haaayrymryd4674.jpg "/>

3. Configure the native Yum source to point to

rm-fr/etc/yum.repos.d/*

Vim/etc/yum.repos.d/yum.repo

[Server]

name=rhel7.1

Baseurl=file:///mnt

Gpgcheck=0

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/90/1D/wKiom1jvNmySrbQmAAATN33sjO4276.jpg "title=" 36020170413162710368.jpg "alt=" Wkiom1jvnmysrbqmaaatn33sjo4276.jpg "/>

4. Installing Resource sharing services

Yum Install Httpd-y

Systemctl Stop FIREWLSH-PLUGIN-11.2.202.451-RELEASE.X86_64.RPMLD

Systemctl Disable FIREWALLD

Systemctl Start httpd

Systemctl Enable httpd

5. Create a shared directory and hang it on the image file to a shared directory

mkdir/var/www/html/rhel7.1

Umount/mnt

Mount rhel-server-7.1-x86_64-dvd.iso/var/www/html/rhel7.1

6. Testing

Enter in the browser:/HTTP//native ip/rhel7.1

You can see what's in the image

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/90/1C/wKioL1jvNfTyzuhmAABI46hPsgk990.jpg "title=" 36020170413162437746.jpg "alt=" Wkiol1jvnftyzuhmaabi46hpsgk990.jpg "/>

7. Modify the native Yum source to point to

[Server]

name=rhel7.1

baseurl=file:///var/www/html/rhel7.1

Gpgcheck=0

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/90/1D/wKiom1jvNgLQvWCDAAAbtmA8r3Q770.jpg "title=" 36020170413162448840.jpg "alt=" Wkiom1jvnglqvwcdaaabtma8r3q770.jpg "/>

8. Boot automatically hangs in ISO

Vim/etc/rc.d/rc.local

Mount rhel-server-7.1-x86_64-dvd.iso/var/www/html/rhel7.1

: Wq

chmod +x/etc/rc.d/rc.local

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/90/1C/wKioL1jvNheRif47AABNemcKiYQ955.jpg "title=" 36020170413162455720.jpg "alt=" Wkiol1jvnherif47aabnemckiyq955.jpg "/>

9. Building of third-party software repositories

Put all rpm packages in a directory where only the RPM files exist

Createrepo-v/rpm Storage Directory

Vim/etc/yum.repos.d/xxx.repo

[Software]

Name=software

BASEURL=FILE:///RPM Storage Directory

Gpgcheck=0

# # # #client指向端 # #

Vim/etc/yum.repos.d/xxxx.repo # #仓库指向文件位置

[xxxx]# #自定义软件仓库名称

name=xxxx# #自定义软件仓库描述

baseurl=ftp://|http://|file://# #仓库位置

Gpgcheck=0 # #不检测gpgkey

# #gpgkey表示软件的出品logo

Example:

Vim/etc/yum.repos.d/yum.repo

[Server]

name=rhel7.1

baseurl=ftp://172.25.0.254/pub/rhel7.1

Gpgcheck=0

: Wq

Yum Clean All # #清空yum缓存识别新配置

Yum command

Yuminstallsoftwarename # #安装

Repolist # #列出设定yum源信息

Removesoftwarename # #卸载

Listsoftwarename # #查看软件源中是否有次软件

List all # #列出所有软件名称

List Installd # #列出已经安装的软件名称

List Available # #列出可以用yum安装的软件名称

Clean All # #清空yum缓存

Searchsoftwareinfo # #根据软件信息搜索软件名字

Whatprovidesfilename # #在yum源中查找包含filename文件的软件包

Update # #更新软件

History # #查看系统软件改变历史

Reinstallsoftwarename # #重新安装

Infosoftwarename # #查看软件信息

Groups List # #查看软件组信息

Groups Infosoftwaregroup # #查看软件组内包含的软件

Groups Installsoftwaregroup # #安装组件

Groups Removesoftwaregroup # #卸载组件


Linux Learning Unit 13

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.