--查询安装的软件
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 ~]#