yum和rpm 查找软件包


 

--查询安装的软件

rpm -qa|grep vim



 --查询这个包中所有文件和位置:.

rpm -ql httpd



---安装

rpm -ivh 包全名

-i:安装(install);

-v:显示更详细的信息(verbose);

-h:打印 #,显示安装进度(hash);





使用yum list已经安装的软件@anaconda表示本机

[root@localhost ~]# yum list sqlite
上次元数据过期检查:1:11:33 前,执行于 2024年01月26日 星期五 09时14分59秒。
已安装的软件包
sqlite.x86_64                                                                          3.26.0-15.el8                                                                           @anaconda
可安装的软件包
sqlite.i686                                                                            3.26.0-15.el8                                                                           base     





[root@localhost ~]# yum list python-devel
上次元数据过期检查:1:11:57 前,执行于 2024年01月26日 星期五 09时14分59秒。
错误:没有匹配的软件包可以列出
[root@localhost ~]# yum list vim
上次元数据过期检查:1:12:06 前,执行于 2024年01月26日 星期五 09时14分59秒。
错误:没有匹配的软件包可以列出
[root@localhost ~]# yum list openssl
上次元数据过期检查:1:12:15 前,执行于 2024年01月26日 星期五 09时14分59秒。
已安装的软件包
openssl.x86_64                                                                          1:1.1.1k-5.el8_5                                                                           @base
[root@localhost ~]# 



显示详细信息

yum info openssl
上次元数据过期检查:1:14:19 前,执行于 2024年01月26日 星期五 09时14分59秒。
已安装的软件包
名称         : openssl
时期         : 1
版本         : 1.1.1k
发布         : 5.el8_5
架构         : x86_64
大小         : 1.1 M
源           : openssl-1.1.1k-5.el8_5.src.rpm
仓库         : @System
来自仓库     : base
概况         : Utilities from the general purpose cryptography library with TLS implementation
URL          : http://www.openssl.org/
协议         : OpenSSL and ASL 2.0
描述         : The OpenSSL toolkit provides support for secure communications between
             : machines. OpenSSL includes a certificate management tool and shared
             : libraries which provide various cryptographic algorithms and
             : protocols.

使用yum在yum源中查询可以安装的软件包



[root@localhost ~]# yum search python|grep dev
上次元数据过期检查:1:07:21 前,执行于 2024年01月26日 星期五 09时14分59秒。
platform-python-devel.i686 : Libraries and header files needed for Python development
platform-python-devel.x86_64 : Libraries and header files needed for Python development
python2-devel.x86_64 : Libraries and header files needed for Python 2 development
python2-tools.x86_64 : A collection of development tools included with Python 2
python3-blockdev.x86_64 : Python3 gobject-introspection bindings for libblockdev
python3-evdev.x86_64 : Python bindings for the Linux input handling subsystem
python3-idle.i686 : A basic graphical development environment for Python
python3-idle.x86_64 : A basic graphical development environment for Python
python3-werkzeug.noarch : The Swiss Army knife of Python web development
python36-devel.x86_64 : Libraries and header files needed for Python development
python38-devel.x86_64 : Libraries and header files needed for Python development
python38-idle.x86_64 : A basic graphical development environment for Python
python39-devel.x86_64 : Libraries and header files needed for Python development
python39-idle.x86_64 : A basic graphical development environment for Python
python2-cairo-devel.x86_64 : Libraries and headers for py2cairo
python3-pyudev.noarch : A libudev binding
[root@localhost ~]# 

  • 9
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值