RPM软件包
Redhat Package Manager 软件包管理
windows .exe
Linux .rpm
软件包的含义
ant-antunit-1.2-10.el7.noarch.rpm
antlr-C++-2.7.7-30.el7.x86_64.rpm
ant-antunit
1.2
10
el7
el6
noarch
x86_64
.rpm
软件包的安装方式
rpm包 预先编译好的,安装简单 版本过低
源码包 手动编译,安装繁琐 版本随意
二进制包 绿色软件 解压即用 无法修改源代码
软件包的获取方式
本地的ISO镜像 需要挂载使用
联网下载
仓库获取 yum源
rpm软件包管理工具
rpm命令 管理软件包
选项:
-i
-v
-h
-ivh
-Uvh
-e
-q
-qa
-qi
-ql
-qc
-qf
[root@zzc ~]
brw-rw---- 1 root cdrom 11, 0 Jul 27 16:29 /dev/sr0
[root@zzc ~]
lrwxrwxrwx 1 root root 3 Jul 27 16:29 /dev/cdrom -> sr0
[root@zzc ~]
mount: /dev/sr0 is write-protected, mounting read-only
[root@zzc ~]
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 98G 1.5G 97G 2% /
devtmpfs 980M 0 980M 0% /dev
tmpfs 991M 0 991M 0% /dev/shm
tmpfs 991M 9.6M 981M 1% /run
tmpfs 991M 0 991M 0% /sys/fs/cgroup
/dev/sda1 497M 120M 378M 25% /boot
tmpfs 199M 0 199M 0% /run/user/0
/dev/sr0 4.3G 4.3G 0 100% /mnt
[root@zzc ~]
4023
-i
-v
-h
[root@zzc ~]
Preparing...
Updating / installing...
1:tree-1.6.0-10.el7
[root@zzc ~]
[root@zzc ~]
error: Failed dependencies:
/etc/mime.types is needed by httpd-2.4.6-88.el7.centos.x86_64
httpd-tools = 2.4.6-88.el7.centos is needed by httpd-2.4.6-88.el7.centos.x86_64
libapr-1.so.0()(64bit) is needed by httpd-2.4.6-88.el7.centos.x86_64
libaprutil-1.so.0()(64bit) is needed by httpd-2.4.6-88.el7.centos.x86_64
[root@zzc ~]
error: Failed dependencies:
libapr-1.so.0()(64bit) is needed by httpd-tools-2.4.6-88.el7.centos.x86_64
libaprutil-1.so.0()(64bit) is needed by httpd-tools-2.4.6-88.el7.centos.x86_64
[root@zzc ~]
-rw-rw-r-- 1 root root 105728 Nov 29 2017 apr-1.4.8-3.el7_4.1.x86_64.rpm
-rw-rw-r-- 1 root root 192652 Nov 29 2017 apr-devel-1.4.8-3.el7_4.1.x86_64.rpm
-rw-rw-r-- 1 root root 94132 Jul 4 2014 apr-util-1.5.2-6.el7.x86_64.rpm
-rw-rw-r-- 1 root root 78072 Jul 4 2014 apr-util-devel-1.5.2-6.el7.x86_64.rpm
-rw-rw-r-- 1 root root 854420 Nov 12 2018 haproxy-1.5.18-8.el7.x86_64.rpm
[root@zzc ~]
Preparing...
Updating / installing...
1:apr-1.4.8-3.el7_4.1
[root@zzc ~]
Preparing...
Updating / installing...
1:apr-util-1.5.2-6.el7
[root@zzc ~]
Preparing...
Updating / installing...
1:httpd-tools-2.4.6-88.el7.centos
[root@zzc ~]
error: Failed dependencies:
/etc/mime.types is needed by httpd-2.4.6-88.el7.centos.x86_64
[root@zzc ~]
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: fedora.cs.nctu.edu.tw
* extras: mirrors.aliyun.com
* updates: mirrors.ustc.edu.cn
mailcap-2.1.41-2.el7.noarch : Helper application and MIME type associations for file types
Repo : base
Matched from:
Filename : /etc/mime.types
[root@zzc ~]
Preparing...
Updating / installing...
1:mailcap-2.1.41-2.el7
[root@zzc ~]
Preparing...
Updating / installing...
1:httpd-2.4.6-88.el7.centos
[root@zzc ~]
[root@zzc ~]
Retrieving https://mirrors.aliyun.com/centos/7.8.2003/os/x86_64/Packages/tree-1.6.0-10.el7.x86_64.rpm
Preparing...
Updating / installing...
1:tree-1.6.0-10.el7
-U
[root@zzc ~]
Retrieving https://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-agent-4.0.0-2.el7.x86_64.rpm
warning: /var/tmp/rpm-tmp.jseg5b: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Preparing...
Updating / installing...
1:zabbix-agent-4.0.0-2.el7
[root@zzc ~]
zabbix_agentd