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 the 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 # #强制安装
-qi Name # #查看软件信息
-KV name.rpm # #检测软件包是否被篡改
-QP name.rpm--scripts # #检测软件在安装或卸载过程中执行的动作
3.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 and 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
(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://s4.51cto.com/wyfs02/M00/90/22/wKioL1jvRwziOyroAAC9SKqBI7E458.png-wh_500x0-wm_ 3-wmp_4-s_3795810459.png "title=" screenshot from 2017-04-13 11-41-59.png "alt=" Wkiol1jvrwzioyroaac9skqbi7e458.png-wh_50 "/>
(4). Install Resource Sharing Service
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). Test
Enter in the browser:/HTTP//native ip/rhel7.1
You can see what's in the image
(7). Modify the native Yum source point
[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
(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 Pointing end
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缓存识别新配置
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/90/22/wKioL1jvR3fRqCQVAABUTelBI1U664.png-wh_500x0-wm_ 3-wmp_4-s_1242645860.png "title=" screenshot from 2017-04-13 12-16-20.png "alt=" Wkiol1jvr3frqcqvaabutelbi1u664.png-wh_50 "/>
5.yum Command
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 # #卸载组件
Software Installation (Linux)