Installation of Linux Software
1:windows:
Xxx.exe installation Package
Linux:
[abrt-addon-ccpp]-[2.1.11-19]. [El7]. [X86_64].rpm # #rpm结尾的适用与redhat操作系 >
|| || || ||
Software name software version software applicable system 64-bit
In the case where the RPM installation package has been obtained. We can install with rpm
########### #rpm安装软件 ############## #3
RPM-IVH software name. RPM #安装
RPM-IVH software name--force # #强制安装 = (reload)
RPM-E Software name #卸载
Rpm-qi Software name #查看安装信息
RPM-QL Software Name # #查询软件生成文件
RPM-QLP software name. RPM # #查询软件安装后会生成什么文件
RPM-QP software name. RPM--scripts # #检测软件在安装或卸载过程中执行的动作
Rpm-qa #查询系统中安装的所有软件名称
Rpm-qa |grep Software #查询软件是否安装
RPM-QF File name # #查看filename属于那个安装包
Rpm-qi Software Name # #查看软件信息
RPM-KV software name name,. RPM # #检测软件包是否被篡改
In the absence of a package, you can select the installation using the image
Local mirror Installation
1: Mount Image
Mirroring is similar to a U-disk and requires mounting, so first create a directory to mount
mkdir/mnt/rhel7.2 # #新建目录mount ftp/Mirror/iso/rhel-server-7.2-x86_64-dvd.iso/mnt/rhel7.2/# #挂载镜像 [Email Pro Tected] yum.repos.d]# df #查看挂载/dev/loop0 3947824 3947824 0 100%/mnt/rhel7.2 #表示已经挂载le
2: Configure the Yum source
Cd/etc/yum.repos.d/vim Zpy.repo 1 [haahah] 2 Name=kaka 3 baseurl=file:///mnt/rhel7.2 4 gpgcheck=0 yum Clean all
3: Test
yum install -y httpd ...... installed: httpd.x86_64 0:2.4.6-40.el7 dependency Installed: apr.x86_64 0:1.4.8-3.el7 apr-util.x86_64 0:1.5.2-6.el7 httpd-tools.x86_64 0:2.4.6-40.el7 complete!
Remote Mirror Installation
You can use HTTP to share the mounted image, because it is particularly troublesome to mount each mirror when using the mirror installation
1: Install Configuration resource Sharing Service
Yum install httpd-ysystemctl stop firewalld systemctl disable firewalld systemctl start httpd systemctl enable httpd
2: Create a shared directory and hang it on the image file to a shared directory
mkdir/var/www/html/rhel7.2 #默认发布目录, note: Ignore/var/wwwmount on Access rhel-server-7.2-x86_64-dvd.iso/var/www/html/rhel7.2
3: Test
Enter in the browser:/HTTP//native ip/rhel7.2
You can see what's in the image
4: Configure the Yum source
[Server]name=serverbaseurl=http://172.25.254.20/rhel7.2gpgcheck=0
5: Test
Yum Clean Allyum install-y software
Note: When selecting an image, the version of the system and the version of the image must be the same
Third-party Package local Installation
1: Put all the RPM packages in a directory, this directory can only exist in the RPM file
Createrepo-v/rpm Storage Directory vim/etc/yum.repos.d/xxx.repo~~~~~~~~~~~[software]name=softwarebaseurl=file:/// RPM Storage Directory gpgcheck=0~~~~~~~~~~~
2: Test
Yum Clean Allyum search file name yum install-y file name. rpm
This article is from the "12462896" blog, please be sure to keep this source http://12472896.blog.51cto.com/12462896/1951512
Installation of Linux Software