一、概念

YUM,全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基於RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。

二、实例

1. 使用yum 命令显示所有软件存储库信息

[root@desktop1 ~]# yum repolist
Loaded plugins: langpacks
Packages | 4.1 kB ::
repo id repo name status
Packages Packages ,
repolist: ,

2. 用 yum 命令,安装/rhel7/dvd/Packages/bind-9.9.4-14.el7.x86_64.rpm

[root@desktop1 ~]# yum localinstall /rhel7/dvd/Packages/bind-9.9.-.el7.x86_64.rpm
Loaded plugins: langpacks
Examining /rhel7/dvd/Packages/bind-9.9.-.el7.x86_64.rpm: :bind-9.9.-.el7.x86_64
Marking /rhel7/dvd/Packages/bind-9.9.-.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package bind.x86_64 :9.9.-.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
bind x86_64 :9.9.-.el7 /bind-9.9.-.el7.x86_64 4.3 M Transaction Summary
==================================================================================================================
Install Package Total size: 4.3 M
Installed size: 4.3 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : :bind-9.9.-.el7.x86_64 /
Verifying : :bind-9.9.-.el7.x86_64 / Installed:
bind.x86_64 :9.9.-.el7 Complete!

3. 用yum list命令找出“bind”这个软件包,观察描述信息,@/bind-9.9.4-14.el7.x86_64”,表示已被安装上了

即包名称前存在符号“@”为已安装

[root@desktop1 ~]# yum list bind
Loaded plugins: langpacks
Installed Packages
bind.x86_64 :9.9.-.el7 @/bind-9.9.-.el7.x86_64

4. 用yum list命令找出“tftp-server”这个软件包,观察描述信息是Package,包前没有@符号,表示未安装

[root@desktop1 ~]# yum list tftp-server
Loaded plugins: langpacks
Available Packages
tftp-server.x86_64 5.2-.el7 Packages

5. 用 yum 命令安装 tftp-server 这个软件包,有任何交互提问,直接回答 yes

[root@desktop1 ~]# yum -y install tftp-server
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package tftp-server.x86_64 :5.2-.el7 will be installed
--> Processing Dependency: xinetd for package: tftp-server-5.2-.el7.x86_64
--> Running transaction check
---> Package xinetd.x86_64 :2.3.-.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
tftp-server x86_64 5.2-.el7 Packages k
Installing for dependencies:
xinetd x86_64 :2.3.-.el7 Packages k Transaction Summary
==================================================================================================================
Install Package (+ Dependent package) Total download size: k
Installed size: k
Downloading packages:
(/): tftp-server-5.2-.el7.x86_64.rpm | kB ::
(/): xinetd-2.3.-.el7.x86_64.rpm | kB ::
------------------------------------------------------------------------------------------------------------------
Total kB/s | kB ::
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : :xinetd-2.3.-.el7.x86_64 /
Installing : tftp-server-5.2-.el7.x86_64 /
Verifying : :xinetd-2.3.-.el7.x86_64 /
Verifying : tftp-server-5.2-.el7.x86_64 / Installed:
tftp-server.x86_64 :5.2-.el7 Dependency Installed:
xinetd.x86_64 :2.3.-.el7 Complete!
[root@desktop1 ~]#

6. 再次查看“tftp-server”这个软件包的安装情况,Package前已存在@符号

[root@desktop1 ~]# yum list tftp-server
Loaded plugins: langpacks
Installed Packages
tftp-server.x86_64 5.2-.el7 @Packages
[root@desktop1 ~]#

7. 检查所有以安装的软件包,可以看到几乎所有都是@anaconda(安装系统时就安装了)

[root@desktop1 ~]# yum list installed
Loaded plugins: langpacks
Installed Packages
GConf2.x86_64 3.2.-.el7 @anaconda/7.0
ModemManager.x86_64 1.1.-.git20130913.el7 @anaconda/7.0
ModemManager-glib.x86_64 1.1.-.git20130913.el7 @anaconda/7.0
NetworkManager.x86_64 :0.9.9.1-.git20140326.4dba720.el7 @anaconda/7.0
NetworkManager-config-server.x86_64 :0.9.9.1-.git20140326.4dba720.el7 @anaconda/7.0
NetworkManager-glib.x86_64 :0.9.9.1-.git20140326.4dba720.el7 @anaconda/7.0
...

8.  显示所有未安装的软件包,Packages前无@符号

[root@desktop1 ~]# yum list available
Loaded plugins: langpacks
Available Packages
-ds-base.x86_64 1.3.1.6-.el7 Packages
-ds-base-libs.x86_64 1.3.1.6-.el7 Packages
ElectricFence.i686 2.2.-.el7 Packages
ElectricFence.x86_64 2.2.-.el7 Packages
GConf2.i686 3.2.-.el7 Packages
GeoIP.i686 1.5.-.el7 Packages
GeoIP.x86_64 1.5.-.el7 Packages

9. 用 yum search 命令,找出所有名称或描述信息中,含有 SSH 字符串的软件包

  search  :搜寻某个软件名称或者是描述 (description) 的重要关键字

[root@desktop1 ~]# yum search SSH
Loaded plugins: langpacks
================================================ N/S matched: SSH ================================================
ksshaskpass.x86_64 : A KDE version of ssh-askpass with KWallet support
libssh2.i686 : A library implementing the SSH2 protocol
libssh2.x86_64 : A library implementing the SSH2 protocol
openssh.x86_64 : An open source implementation of SSH protocol versions and
openssh-askpass.x86_64 : A passphrase dialog for OpenSSH and X
openssh-clients.x86_64 : An open source SSH client applications
openssh-keycat.x86_64 : A mls keycat backend for openssh
openssh-server.x86_64 : An open source SSH server daemon Name and summary matches only, use "search all" for everything.

[root@desktop1 ~]# yum search tftp
  Loaded plugins: langpacks
  =============================================== N/S matched: tftp ================================================
  tftp.x86_64 : The client for the Trivial File Transfer Protocol (TFTP)
  tftp-server.x86_64 : The server for the Trivial File Transfer Protocol (TFTP)

Name and summary matches only, use "search all" for everything.

10. 用 yum list 命令,找出名称中有“ssh”的字符串的软件软件包

   list    :列出目前 yum 所管理的所有的软件名称与版本,有点类似 rpm -qa;

[root@desktop1 ~]# yum list *ssh*
Loaded plugins: langpacks
Installed Packages
libssh2.x86_64 1.4.-.el7 @anaconda/7.0
openssh.x86_64 .4p1-.el7 @anaconda/7.0
openssh-clients.x86_64 .4p1-.el7 @anaconda/7.0
openssh-server.x86_64 .4p1-.el7 @anaconda/7.0
Available Packages
ksshaskpass.x86_64 0.5.-.el7 Packages
libssh2.i686 1.4.-.el7 Packages
openssh-askpass.x86_64 .4p1-.el7 Packages
openssh-keycat.x86_64 .4p1-.el7 Packages

11. 用 yum 命令,显示/etc/named.conf 这个文件是哪个软件包提供的

[root@desktop1 ~]# yum provides /etc/named.conf
Loaded plugins: langpacks
:bind-9.9.-.el7.x86_64 : The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server
Repo : Packages
Matched from:
Filename : /etc/named.conf :bind-9.9.-.el7.x86_64 : The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server
Repo : @/bind-9.9.-.el7.x86_64
Matched from:
Filename : /etc/named.conf [root@desktop1 ~]#

12. 使用yum卸载bind软件包

[root@desktop1 ~]# yum remove bind
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package bind.x86_64 :9.9.-.el7 will be erased
--> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Removing:
bind x86_64 :9.9.-.el7 @/bind-9.9.-.el7.x86_64 4.3 M Transaction Summary
==================================================================================================================
Remove Package Installed size: 4.3 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : :bind-9.9.-.el7.x86_64 /
Verifying : :bind-9.9.-.el7.x86_64 / Removed:
bind.x86_64 :9.9.-.el7 Complete!
[root@desktop1 ~]#

13. 用 yum 命令,检查所有可以用的软件组(包括被隐藏的也显示出来)

[root@desktop1 ~]# yum group list hidden
Loaded plugins: langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Available environment groups:
Minimal Install
Infrastructure Server
File and Print Server
Basic Web Server
Virtualization Host
Server with GUI
Available Groups:
Additional Development
Anaconda Tools
Backup Client
Backup Server
Base
Compatibility Libraries
Conflicts (Server)
Console Internet Tools
Core
DNS Name Server
Debugging Tools
Desktop Debugging and Performance Tools
Development Tools
Dial-up Networking Support
Directory Client
Directory Server
E-mail Server
Emacs
FTP Server
File and Storage Server
Fonts
GNOME
Graphical Administration Tools
Graphics Creation Tools
Guest Agents
Guest Desktop Agents
Hardware Monitoring Utilities
Identity Management Server
Infiniband Support
Input Methods
Internet Browser
Java Platform
KDE
Large Systems Performance
Legacy UNIX Compatibility
Legacy X Window System Compatibility
Load Balancer
Mainframe Access
MariaDB Database Client
MariaDB Database Server
Multimedia
Network File System Client
Network Infrastructure Server
Networking Tools
PHP Support
Performance Tools
Perl Support
Perl for Web
Platform Development
PostgreSQL Database Client
PostgreSQL Database Server
Print Server
Printing Client
Python
Remote Desktop Clients
Remote Management for Linux
Ruby Support
Scientific Support
Security Tools
Smart Card Support
System Administration Tools
System Management
Technical Writing
Virtualization Client
Virtualization Hypervisor
Virtualization Platform
Virtualization Tools
Web Server
Web Servlet Engine
X Window System
Done
[root@desktop1 ~]#

14. 检查组“Web Server”包含的信息

[root@desktop1 ~]# yum group info "Web Server"
Loaded plugins: langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum) Group: Web Server
Group-Id: web-server
Description: Allows the system to act as a web server, and run Perl and Python web applications.
Mandatory Packages:
+httpd
Default Packages:
+crypto-utils
+httpd-manual
+mod_fcgid
+mod_ssl
Optional Packages:
certmonger
libmemcached
memcached
mod_auth_kerb
mod_nss
mod_revocator
mod_security
mod_security_crs
perl-CGI
perl-CGI-Session
python-memcached
squid
[root@desktop1 ~]#

15. 用 yum 命令,安装软件组“Web Server”

[root@desktop1 ~]# yum group install "Web Server"
Loaded plugins: langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Resolving Dependencies
--> Running transaction check
---> Package crypto-utils.x86_64 :2.4.-.el7 will be installed
--> Processing Dependency: perl(Newt) for package: crypto-utils-2.4.-.el7.x86_64
---> Package httpd.x86_64 :2.4.-.el7 will be installed
--> Processing Dependency: httpd-tools = 2.4.-.el7 for package: httpd-2.4.-.el7.x86_64
--> Processing Dependency: libapr-.so.()(64bit) for package: httpd-2.4.-.el7.x86_64
--> Processing Dependency: libaprutil-.so.()(64bit) for package: httpd-2.4.-.el7.x86_64
---> Package httpd-manual.noarch :2.4.-.el7 will be installed
---> Package mod_fcgid.x86_64 :2.3.-.el7 will be installed
---> Package mod_ssl.x86_64 :2.4.-.el7 will be installed
--> Running transaction check
---> Package apr.x86_64 :1.4.-.el7 will be installed
---> Package apr-util.x86_64 :1.5.-.el7 will be installed
---> Package httpd-tools.x86_64 :2.4.-.el7 will be installed
---> Package perl-Newt.x86_64 :1.08-.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing for group install "Web Server":
crypto-utils x86_64 2.4.-.el7 Packages k
httpd x86_64 2.4.-.el7 Packages 1.2 M
httpd-manual noarch 2.4.-.el7 Packages 1.3 M
mod_fcgid x86_64 2.3.-.el7 Packages k
mod_ssl x86_64 :2.4.-.el7 Packages k
Installing for dependencies:
apr x86_64 1.4.-.el7 Packages k
apr-util x86_64 1.5.-.el7 Packages k
httpd-tools x86_64 2.4.-.el7 Packages k
perl-Newt x86_64 1.08-.el7 Packages k Transaction Summary
==================================================================================================================
Install Packages (+ Dependent packages) Total download size: 3.1 M
Installed size: M
Is this ok [y/d/N]: y
Downloading packages:
(/): apr-1.4.-.el7.x86_64.rpm | kB ::
(/): crypto-utils-2.4.-.el7.x86_64.rpm | kB ::
(/): apr-util-1.5.-.el7.x86_64.rpm | kB ::
(/): httpd-2.4.-.el7.x86_64.rpm | 1.2 MB ::
(/): httpd-tools-2.4.-.el7.x86_64.rpm | kB ::
(/): mod_fcgid-2.3.-.el7.x86_64.rpm | kB ::
(/): mod_ssl-2.4.-.el7.x86_64.rpm | kB ::
(/): perl-Newt-1.08-.el7.x86_64.rpm | kB ::
(/): httpd-manual-2.4.-.el7.noarch.rpm | 1.3 MB ::
------------------------------------------------------------------------------------------------------------------
Total 7.0 MB/s | 3.1 MB ::
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : apr-1.4.-.el7.x86_64 /
Installing : apr-util-1.5.-.el7.x86_64 /
Installing : httpd-tools-2.4.-.el7.x86_64 /
Installing : httpd-2.4.-.el7.x86_64 /
Installing : perl-Newt-1.08-.el7.x86_64 /
Installing : crypto-utils-2.4.-.el7.x86_64 /
Installing : mod_fcgid-2.3.-.el7.x86_64 /
Installing : httpd-manual-2.4.-.el7.noarch /
Installing : :mod_ssl-2.4.-.el7.x86_64 /
Verifying : mod_fcgid-2.3.-.el7.x86_64 /
Verifying : httpd-manual-2.4.-.el7.noarch /
Verifying : perl-Newt-1.08-.el7.x86_64 /
Verifying : :mod_ssl-2.4.-.el7.x86_64 /
Verifying : httpd-2.4.-.el7.x86_64 /
Verifying : apr-util-1.5.-.el7.x86_64 /
Verifying : httpd-tools-2.4.-.el7.x86_64 /
Verifying : apr-1.4.-.el7.x86_64 /
Verifying : crypto-utils-2.4.-.el7.x86_64 / Installed:
crypto-utils.x86_64 :2.4.-.el7 httpd.x86_64 :2.4.-.el7 httpd-manual.noarch :2.4.-.el7
mod_fcgid.x86_64 :2.3.-.el7 mod_ssl.x86_64 :2.4.-.el7 Dependency Installed:
apr.x86_64 :1.4.-.el7 apr-util.x86_64 :1.5.-.el7 httpd-tools.x86_64 :2.4.-.el7
perl-Newt.x86_64 :1.08-.el7 Complete!
[root@desktop1 ~]#

16. 检查“Web Server”的信息,强制安装和默认安装的包都标记为已安装“=”

[root@desktop1 ~]# yum group info "Web Server"
Loaded plugins: langpacks Group: Web Server
Group-Id: web-server
Description: Allows the system to act as a web server, and run Perl and Python web applications.
Mandatory Packages:
=httpd
Default Packages:
=crypto-utils
=httpd-manual
=mod_fcgid
=mod_ssl
Optional Packages:
certmonger
libmemcached
memcached
mod_auth_kerb
mod_nss
mod_revocator
mod_security
mod_security_crs
perl-CGI
perl-CGI-Session
python-memcached
squid
[root@desktop1 ~]#

17. 卸载软件组“Web Server”,并确认卸载成功

[root@desktop1 ~]# yum group remove "Web Server"
Loaded plugins: langpacks
No environment named Web Server exists
Resolving Dependencies
--> Running transaction check
---> Package crypto-utils.x86_64 :2.4.-.el7 will be erased
---> Package httpd.x86_64 :2.4.-.el7 will be erased
---> Package httpd-manual.noarch :2.4.-.el7 will be erased
---> Package mod_fcgid.x86_64 :2.3.-.el7 will be erased
---> Package mod_ssl.x86_64 :2.4.-.el7 will be erased
--> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Removing:
crypto-utils x86_64 2.4.-.el7 @Packages k
httpd x86_64 2.4.-.el7 @Packages 3.7 M
httpd-manual noarch 2.4.-.el7 @Packages 5.5 M
mod_fcgid x86_64 2.3.-.el7 @Packages k
mod_ssl x86_64 :2.4.-.el7 @Packages k Transaction Summary
==================================================================================================================
Remove Packages Installed size: 9.7 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : :mod_ssl-2.4.-.el7.x86_64 /
Erasing : httpd-manual-2.4.-.el7.noarch /
Erasing : mod_fcgid-2.3.-.el7.x86_64 /
Erasing : httpd-2.4.-.el7.x86_64 /
Erasing : crypto-utils-2.4.-.el7.x86_64 /
Verifying : crypto-utils-2.4.-.el7.x86_64 /
Verifying : mod_fcgid-2.3.-.el7.x86_64 /
Verifying : httpd-manual-2.4.-.el7.noarch /
Verifying : :mod_ssl-2.4.-.el7.x86_64 /
Verifying : httpd-2.4.-.el7.x86_64 / Removed:
crypto-utils.x86_64 :2.4.-.el7 httpd.x86_64 :2.4.-.el7 httpd-manual.noarch :2.4.-.el7
mod_fcgid.x86_64 :2.3.-.el7 mod_ssl.x86_64 :2.4.-.el7 Complete!
[root@desktop1 ~]# yum group info "Web Server"
Loaded plugins: langpacks Group: Web Server
Group-Id: web-server
Description: Allows the system to act as a web server, and run Perl and Python web applications.
Mandatory Packages:
+httpd
Default Packages:
+crypto-utils
+httpd-manual
+mod_fcgid
+mod_ssl
Optional Packages:
certmonger
libmemcached
memcached
mod_auth_kerb
mod_nss
mod_revocator
mod_security
mod_security_crs
perl-CGI
perl-CGI-Session
python-memcached
squid
[root@desktop1 ~]#

18. 用 tail 命令,观察 yum 的日志文件,前面的安装和移除操作都被记录在日志文件中

[root@desktop1 ~]# grep "log" /etc/yum.conf         #yum 的配置文件定义了日志的位置
logfile=/var/log/yum.log
[root@desktop1 ~]# tail -n /var/log/yum.log
Nov :: Installed: :bind-9.9.-.el7.x86_64
Nov :: Installed: :xinetd-2.3.-.el7.x86_64
Nov :: Installed: tftp-server-5.2-.el7.x86_64
Nov :: Erased: :bind-9.9.-.el7.x86_64
Nov :: Installed: apr-1.4.-.el7.x86_64
Nov :: Installed: apr-util-1.5.-.el7.x86_64
Nov :: Installed: httpd-tools-2.4.-.el7.x86_64
Nov :: Installed: httpd-2.4.-.el7.x86_64
Nov :: Installed: perl-Newt-1.08-.el7.x86_64
Nov :: Installed: crypto-utils-2.4.-.el7.x86_64
Nov :: Installed: mod_fcgid-2.3.-.el7.x86_64
Nov :: Installed: httpd-manual-2.4.-.el7.noarch
Nov :: Installed: :mod_ssl-2.4.-.el7.x86_64
Nov :: Erased: :mod_ssl-2.4.-.el7.x86_64
Nov :: Erased: httpd-manual-2.4.-.el7.noarch
Nov :: Erased: mod_fcgid-2.3.-.el7.x86_64
Nov :: Erased: httpd-2.4.-.el7.x86_64
Nov :: Erased: crypto-utils-2.4.-.el7.x86_64
[root@desktop1 ~]#

19. 使用yum history检查之前的yum操作结果

[;J
[root@desktop1 ~]# yum history
Loaded plugins: langpacks
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
| root <root> | -- : | Erase |
| root <root> | -- : | Install |
| root <root> | -- : | Erase |
| root <root> | -- : | Install |
| root <root> | -- : | Install |
| System <unset> | -- : | Install |
history list

20. 执行最近一次 yum 操作的反操作(最近一次是删除 Web Server,所有反操作就是安装 Web Server 组,序号6则是步骤19中的ID6)

[root@desktop1 ~]# yum history undo
Loaded plugins: langpacks
Undoing transaction , from Wed Nov ::
Erase crypto-utils-2.4.-.el7.x86_64 @Packages
Erase httpd-2.4.-.el7.x86_64 @Packages
Erase httpd-manual-2.4.-.el7.noarch @Packages
Erase mod_fcgid-2.3.-.el7.x86_64 @Packages
Erase mod_ssl-:2.4.-.el7.x86_64 @Packages
Resolving Dependencies
--> Running transaction check
---> Package crypto-utils.x86_64 :2.4.-.el7 will be installed
---> Package httpd.x86_64 :2.4.-.el7 will be installed
---> Package httpd-manual.noarch :2.4.-.el7 will be installed
---> Package mod_fcgid.x86_64 :2.3.-.el7 will be installed
---> Package mod_ssl.x86_64 :2.4.-.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
crypto-utils x86_64 2.4.-.el7 Packages k
httpd x86_64 2.4.-.el7 Packages 1.2 M
httpd-manual noarch 2.4.-.el7 Packages 1.3 M
mod_fcgid x86_64 2.3.-.el7 Packages k
mod_ssl x86_64 :2.4.-.el7 Packages k Transaction Summary
==================================================================================================================
Install Packages Total download size: 2.7 M
Installed size: 9.7 M
Is this ok [y/d/N]: y
Downloading packages:
(/): crypto-utils-2.4.-.el7.x86_64.rpm | kB ::
(/): httpd-2.4.-.el7.x86_64.rpm | 1.2 MB ::
(/): httpd-manual-2.4.-.el7.noarch.rpm | 1.3 MB ::
(/): mod_fcgid-2.3.-.el7.x86_64.rpm | kB ::
(/): mod_ssl-2.4.-.el7.x86_64.rpm | kB ::
------------------------------------------------------------------------------------------------------------------
Total 9.6 MB/s | 2.7 MB ::
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : httpd-2.4.-.el7.x86_64 /
Installing : mod_fcgid-2.3.-.el7.x86_64 /
Installing : httpd-manual-2.4.-.el7.noarch /
Installing : :mod_ssl-2.4.-.el7.x86_64 /
Installing : crypto-utils-2.4.-.el7.x86_64 /
Verifying : mod_fcgid-2.3.-.el7.x86_64 /
Verifying : httpd-manual-2.4.-.el7.noarch /
Verifying : crypto-utils-2.4.-.el7.x86_64 /
Verifying : :mod_ssl-2.4.-.el7.x86_64 /
Verifying : httpd-2.4.-.el7.x86_64 / Installed:
crypto-utils.x86_64 :2.4.-.el7 httpd.x86_64 :2.4.-.el7 httpd-manual.noarch :2.4.-.el7
mod_fcgid.x86_64 :2.3.-.el7 mod_ssl.x86_64 :2.4.-.el7 Complete!
[root@desktop1 ~]#

使用YUM管理软件包的更多相关文章

  1. centos8平台使用dnf/yum管理软件包

    一,dnf的用途 centos7开始,DNF 成为了默认的软件包管理器,同时 yum 仍然是可用的 DNF包管理器克服了YUM包管理器的一些瓶颈,提升了用户体验,内存占用,依赖分析,运行速度等方面 D ...

  2. linux软件管理之yum管理操作软件包

    什么是rpm 1.1`RPM` 全称 `RedHat Package Manager` 缩写,由红帽开发用于软件包的安装.升级.卸载与查询. 1.2rpm包名组成部分 `RPM` 包命名以-将软件分成 ...

  3. Linux基础(4)-硬盘分区、格式化及文件系统的管理、软件包的管理、yum管理RPM包和python的源码安装

    一: 1)  开启Linux系统前添加一块大小为15G的SCSI硬盘 2)  开启系统,右击桌面,打开终端 3)  为新加的硬盘分区,一个主分区大小为5G,剩余空间给扩展分区,在扩展分区上划分1个逻辑 ...

  4. linux基础-第十六单元 yum管理RPM包

    第十六单元 yum管理RPM包 yum的功能 本地yum配置 光盘挂载和镜像挂载 本地yum配置 网络yum配置 网络yum配置 Yum命令的使用 使用yum安装软件 使用yum删除软件 安装组件 删 ...

  5. Linux网络原理及基础设,yum管理RPM包

    一:ifconfig命令 1,ifconfig命令的功能:显示所有正在启动的网卡的详细信息或设定系统中网卡的IP地址. 2. 使用ifup和ifdown命令启动和停止网卡(详见linux系统管理P42 ...

  6. Linux学习之RPM包管理-yum管理(十七)

    Linux学习之RPM包管理-yum管理 目录 IP地址配置 网络yum源 yum命令 光盘yum源搭建 IP地址配置 IP+子网掩码就可以在局域网(内网)使用. IP+子网掩码+网关+DNS就可以访 ...

  7. linux软件管理之yum管理rpm包

    YUM 使用官方源 ==================================================================================== 阿里镜像站 ...

  8. Linux系统分区 进程管理 软件包安装

    对于一块新的磁盘来说,系统能够使用需要有分区.格式化文件系统.挂载等主要操作,下面通过命令的方式对一块磁盘进行操作. 一. Linux系统分区 1.1 在虚拟机开机前选择虚拟机配置,添加一个新的SCS ...

  9. linux rpm包管理 yum管理

    1. 软件包的管理 RPM的定义:RPM就是Red Hat Package Manger(红帽软件包管理工具)的缩写. RPM包不需要编译,本身就是二进制,而源码包需要先编译成系统识别的二进制文件,才 ...

随机推荐

  1. 水王ID查找

    一. 题目 1 三人行设计了一个灌水论坛.信息学院的学生都喜欢在上面交流灌水,传说在论坛上有一个“水王”,他不但喜欢发帖,还会回复其他ID发的每个帖子.坊间风闻该“水王”发帖数目超过了帖子数目的一半. ...

  2. 玩耍Hibernate系列(一)--基础知识

    Hibernate框架介绍: Hibernate  ORM  主要用于持久化对象(最常用的框架) Hibernate  Search 用于对对象进行搜索,底层基于Apache Lucene做的 Hib ...

  3. 如何写一个漂亮的Liferay Theme 6.2

    只要你看到的.想做出来的页面,都可以通过liferay theme来实现,至于具体实现凡方式,那就见仁见智了. 下面,我将介绍如何快速地建一个简单漂亮的liferay theme. 工具:lifera ...

  4. LNMP系列网站零基础开发记录(二)

    [目录] 扯淡吹逼之开发前奏 Django 开发环境搭建及配置 web 页面开发 Django app开发 Django 站点管理 Python 简易爬虫开发 Nginx&uWSGI 服务器配 ...

  5. android sdk manager下载慢可以使用代理信息

    mirrors.neusoft.edu.cn  80

  6. 连接db2数据库时NumberFormatException异常的解决方式

    连接db2数据库时报异常:java.lang.NumberFormatException: For input string: "A" from a DB2 JDBC(JCC) j ...

  7. 2012 Asia Chengdu Regional Contest

    Browsing History http://acm.hdu.edu.cn/showproblem.php?pid=4464 签到 #include<cstdio> #include&l ...

  8. 两台机器间libevent通信:No route to host问题

    最近学习libevent库,遂在两台虚拟机间模拟通信,程序没逻辑错误,但客户端总是提示No route to host问题,想到可能是linux的防火墙问题导致的,于是关掉防火墙: Ubuntu系统防 ...

  9. 疯狂java讲义——多态

    父类 f = new 子类(); 引用变量f,在编译时类型是父类,在运行时类型是子类类型.当这个引用变量调用子类重写父类的那个方法的时候,实际执行的是子类中重写后的那个方法.当运行的时候调用该变量的方 ...

  10. ubuntu 点点滴滴

    pptpd http://linux.cn/article-3376-1.html 命令行升级ubuntu版本 do-release-upgrade -d  寻找最新的稳定版本,加上-d参数则包括不稳 ...