linux软件管理(2)-RPM安装

张开发
2026/4/15 13:57:23 15 分钟阅读

分享文章

linux软件管理(2)-RPM安装
#下载安装文件 [rootlocalhost ~]# wget http://nginx.org/packages/rhel/9/x86_64/RPMS/nginx-1.24.0-1.el9.ngx.x86_64.rpm URL transformed to HTTPS due to an HSTS policy --2026-04-14 21:35:23-- https://nginx.org/packages/rhel/9/x86_64/RPMS/nginx-1.24.0-1.el9.ngx.x86_64.rpm Resolving nginx.org (nginx.org)... 3.125.197.172, 2a05:d014:5c0:2601::6, 2a05:d014:5c0:2600::6 Connecting to nginx.org (nginx.org)|3.125.197.172|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 888854 (868K) [application/x-redhat-package-manager] Saving to: ‘nginx-1.24.0-1.el9.ngx.x86_64.rpm’ nginx-1.24.0-1.el9.n 100%[] 868.02K 15.9KB/s in 51s 2026-04-14 21:36:15 (17.0 KB/s) - ‘nginx-1.24.0-1.el9.ngx.x86_64.rpm’ saved [888854/888854] #查看是否下载成功 [rootlocalhost ~]# ls d1 dir1 f1 nginx-1.24.0-1.el9.ngx.x86_64.rpm nginx-1.26.2.tar.gz.1 d2 download1.html f2 nginx-1.26.2 d3 download.html f3 nginx-1.26.2.tar.gz # 安装软件 [rootlocalhost ~]# rpm -ivh nginx-1.24.0-1.el9.ngx.x86_64.rpm warning: nginx-1.24.0-1.el9.ngx.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 7bd9bf62: NOKEY Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:nginx-1:1.24.0-1.el9.ngx ################################# [100%] ---------------------------------------------------------------------- Thanks for using nginx! Please find the official documentation for nginx here: * https://nginx.org/en/docs/ Please subscribe to nginx-announce mailing list to get the most important news about nginx: * https://nginx.org/en/support.html Commercial subscriptions for nginx are available on: * https://nginx.com/products/ ---------------------------------------------------------------------- #启动软件 [rootlocalhost ~]# systemctl start nginx注意使用 rpm 安装软件时需要我们自己去维护软件之间的依赖。

更多文章