Linux Cloud Automation Operations Basics 13 (software installation)

Source: Internet
Author: User

# # # #1. Software name Recognition # # #
[abrt-addon-ccpp]-[2.1.11-19]. [El7]. [X86_64].rpm # #rpm结尾的适用与redhat操作系统
||         ||       || ||
Software name software version software applicable system 64-bit


# # # #2. How to install software # # #
1.rpm
RPM-IVH name.rpm # #安装,-V display procedure,-h specifies the encryption method is hash
-E name # #卸载
-QL Name # #查询软件生成文件
-QLP name.rpm # #查询软件安装后会生成什么文件
-QA # #查询系统中安装的所有软件名称
-QA |grep Name # #查询软件是否安装
-Q Name # # ....
-QP name.rpm # #查询软件安装包安装后的名字
-QF FileName # #查看filename属于那个安装包
-IVH name.rpm--force # #强制安装, but cannot ignore dependencies
-IVH name.rpm--nodeps--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源端 # # #
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://s3.51cto.com/wyfs02/M02/9D/46/wKiom1l9TUnyHS92AAFYddDocWY470.png "title=" Screenshot from 2017-07-29 14-04-22.png "alt=" Wkiom1l9tunyhs92aafydddocwy470.png "/>3. Configuring a native Yum source point
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://s4.51cto.com/wyfs02/M02/9D/46/wKioL1l9TXiBHqdiAAC05YYv9OA216.png "title=" Screenshot from 2017-07-29 14-12-42.png "alt=" Wkiol1l9txibhqdiaac05yyv9oa216.png "/>




4. Installing Resource sharing services
Yum Install Httpd-y
Systemctl Stop Firewalld
Systemctl Disable FIREWALLD
Systemctl Start httpd
Systemctl Enable httpd

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9D/46/wKiom1l9TaeTf_B5AAKrC5Gm7Y4318.png "title=" Screenshot from 2017-07-29 14-14-17.png "alt=" Wkiom1l9taetf_b5aakrc5gm7y4318.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9D/46/wKioL1l9TraC3Cx5AAHv0N3zBAI345.png "title=" Screenshot from 2017-07-29 14-20-01.png "alt=" Wkiol1l9trac3cx5aahv0n3zbai345.png "/>







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://s5.51cto.com/wyfs02/M00/9D/46/wKioL1l9Tfrwp5usAAGKLhfgE08941.png "title=" Screenshot from 2017-07-29 14-36-44.png "alt=" Wkiol1l9tfrwp5usaagklhfge08941.png "/>
7. Modify the native Yum source to point to
[Server]
name=rhel7.1
baseurl=file:///var/www/html/rhel7.1
Gpgcheck=0

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://s3.51cto.com/wyfs02/M00/9D/46/wKiom1l9TjWS7KVfAABei7WYE-s038.png "title=" Screenshot from 2017-07-29 14-56-14.png "alt=" Wkiom1l9tjws7kvfaabei7wye-s038.png "/>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
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9D/46/wKiom1l9TmezbwC7AACmnqMU0bw571.png "title=" Screenshot from 2017-07-29 16-32-57.png "alt=" Wkiom1l9tmezbwc7aacmnqmu0bw571.png "/>yum-All # #清空yu M cache identifies new configuration

# # # #yum命令 # #
Yum Install Softwarename # #安装
Repolist # #列出设定yum源信息
Remove Softwarename # #卸载
List Softwarename # #查看软件源中是否有次软件
List all # #列出所有软件名称
List Installd # #列出已经安装的软件名称
List Available # #列出可以用yum安装的软件名称
Clean All # #清空yum缓存
Search Softwareinfo # #根据软件信息搜索软件名字
Whatprovides FileName # #在yum源中查找包含filename文件的软件包
Update # #更新软件
History # #查看系统软件改变历史
Reinstall Softwarename # #重新安装
Info Softwarename # #查看软件信息
Groups List # #查看软件组信息
Groups Info Softwaregroup # #查看软件组内包含的软件
Groups install Softwaregroup # #安装组件
Groups Remove Softwaregroup # #卸载组件


This article is from the "13122425" blog, please be sure to keep this source http://13132425.blog.51cto.com/13122425/1952065

Linux Cloud Automation Operations Basics 13 (software installation)

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.