使用yum info查看软件包信息与常用软件包

记录:357

场景:在CentOS 7.9操作系统上,使用yum info查看软件包信息,包括软件包名称、适用架构、版本号、发行版、软件大小、仓库名称、概要、URL、许可证、描述。

版本:

操作系统:CentOS 7.9

1.iptables包

(1)查看软件信息

命令:yum info iptables

(2)软件信息

执行命令查出的软件信息。

解析:从展现信息可以看到软件包名称、适用架构、版本号、发行版、软件大小、仓库名称、概要、URL、许可证、描述。

(3)从字段Description中找出软件功能描述

描述:The iptables utility controls the network packet filtering code in the Linux kernel. If you need to set up firewalls and/or IP masquerading,you should install this package.

解析:iptables实用程序是Linux内核中控制网络包过滤的代码。可以设置防火墙和IP伪装。

2.yum-utils包

(1)软件描述

yum-utils is a collection of utilities and examples for the yum package manager. It includes utilities by different authors that make yum easier and more powerful to use. These tools include: debuginfo-install, find-repos-of-install, needs-restarting, package-cleanup, repoclosure, repodiff, repo-graph, repomanage, repoquery, repo-rss, reposync, repotrack, show-installed, show-changed-rco, verifytree, yumdownloader, yum-builddep, yum-complete-transaction, yum-config-manager, yum-debug-dump, yum-debug-restore and yum-groups-manager.

(2)解析描述

yum-utils是一个yum包管理器的实用程序和例子的集合。这些实用程序是不同作者写的,目的为了使用yum命令更容易和更高效。这些工具包括: debuginfo-install, find-repos-of-install, needs-restarting, package-cleanup, repoclosure, repodiff, repo-graph, repomanage, repoquery, repo-rss, reposync, repotrack, show-installed, show-changed-rco, verifytree, yumdownloader, yum-builddep, yum-complete-transaction, yum-config-manager, yum-debug-dump, yum-debug-restore and yum-groups-manager。

3.createrepo包

(1)软件描述

This utility will generate a common metadata repository from a directory of rpm packages.

(2)解析描述

createrepo实用程序是根据rpm包的目录创建通用的仓库元数据。

4.httpd包

(1)软件描述

The Apache HTTP Server is a powerful, efficient, and extensible web server.

(2)解析描述

安装httpd后,就安装了一个Apache HTTP 服务器,是一个强大的、高效的、可扩展的web服务器。默认生成目录:/var/www/html/;默认端口:80。

5.curl包

(1)软件描述

curl is a command line tool for transferring data with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3 and RTSP.  

curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks.

(2)解析描述

curl是一个命令行工具,用于使用URL句法传输数据,支持协议包括: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3 和 RTSP。 

curl支持SSL证书、HTTP POST、 HTTP PUT、 FTP上传、基于http表单的上传、代理、cookie、用户+密码认证(Basic, Digest, NTLM, Negotiate, kerberos...)、文件传输恢复、代理隧道和其它一些有用技巧。

6.wget包

(1)软件描述

GNU Wget is a file retrieval utility which can use either the HTTP or FTP protocols. Wget features include the ability to work in the background while you are logged out, recursive retrieval of directories, file name wildcard matching, remote file timestamp storage and comparison, use of Rest with FTP servers and Range with HTTP servers to retrieve files over slow or unstable connections, support for Proxy servers, and configurability.

(2)解析描述

GNU Wget是一个文件检索使用程序,可以使用HTTP或FTP协议。Wget的功能包括登录后后台运行、目录的递归检索、文件名通配符匹配、远程文件时间戳存储和比较、在FTP服务器使用Rest和在HTTP服务器使用Range方式去检索缓慢或者不稳定连接的文件、支持代理服务器和可配置。

7.net-tools

(1)软件描述

The net-tools package contains basic networking tools,including ifconfig, netstat, route, and others.Most of them are obsolete. For replacement check iproute package.

(2)解析描述

net-tools包含基础的网络工具,包括ifconfig、netstat、route和其它。大部分已经被淘汰,使用iproute包代替。

8.iproute

(1)软件描述

The iproute package contains networking utilities (ip and rtmon, for example) which are designed to use the advanced networking capabilities of the Linux kernel.

(2)解析描述

iproute包括网络使用程序(比如ip and rtmon),这些实用程序旨在使用Linux内核的高级网络功能。

以上,感谢。

2022年12月8日

### 使用 `yum` 下载软件包 #### 安装指定版本的软件包 当需要下载并安装特定版本的软件包时,可以通过如下方式实现: ```bash sudo yum install 软件名-版本号 ``` 例如要安装 httpd 版本为 2.4.6 的软件包: ```bash sudo yum install httpd-2.4.6 ``` 此操作不仅会下载该版本的软件包还会将其安装到系统中[^2]。 #### 单纯下载而不安装 如果仅希望下载某个软件包而不想立即安装它,可以利用 `yumdownloader` 这一工具来完成这项工作。首先确认是否已安装 `yum-utils` 包,因为 `yumdownloader` 是其中的一部分;如果没有则需先进行安装: ```bash sudo yum install yum-utils ``` 之后便能通过下面这条指令下载所需的 rpm 文件至当前目录下: ```bash yumdownloader 软件名称 ``` 比如想要获取最新版的 `httpd` ,就执行: ```bash yumdownloader httpd ``` 对于某些情况下可能还需要连同依赖项一起下载的情况,只需加上参数 `--resolve` : ```bash yumdownloader --resolve httpd ``` 这样就能把所有必要的组件都保存下来以便后续处理[^3]。 #### 验证下载后的文件 为了确保所获得的内容确实是预期中的 RPM 包,在下载完成后还可以对其进行校验。通常的做法是比较其 SHA 或 MD5 散列值官方发布的对应值是否一致。不过更简便的方法是直接尝试重新加载这个包看能否正常解析: ```bash rpm -Kp *.rpm ``` 上述命令会对给定路径下的 .rpm 文件做基本验证,并报告它们的状态。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值