使用YUM管理软件包
一、概念
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管理软件包的更多相关文章
- centos8平台使用dnf/yum管理软件包
一,dnf的用途 centos7开始,DNF 成为了默认的软件包管理器,同时 yum 仍然是可用的 DNF包管理器克服了YUM包管理器的一些瓶颈,提升了用户体验,内存占用,依赖分析,运行速度等方面 D ...
- linux软件管理之yum管理操作软件包
什么是rpm 1.1`RPM` 全称 `RedHat Package Manager` 缩写,由红帽开发用于软件包的安装.升级.卸载与查询. 1.2rpm包名组成部分 `RPM` 包命名以-将软件分成 ...
- Linux基础(4)-硬盘分区、格式化及文件系统的管理、软件包的管理、yum管理RPM包和python的源码安装
一: 1) 开启Linux系统前添加一块大小为15G的SCSI硬盘 2) 开启系统,右击桌面,打开终端 3) 为新加的硬盘分区,一个主分区大小为5G,剩余空间给扩展分区,在扩展分区上划分1个逻辑 ...
- linux基础-第十六单元 yum管理RPM包
第十六单元 yum管理RPM包 yum的功能 本地yum配置 光盘挂载和镜像挂载 本地yum配置 网络yum配置 网络yum配置 Yum命令的使用 使用yum安装软件 使用yum删除软件 安装组件 删 ...
- Linux网络原理及基础设,yum管理RPM包
一:ifconfig命令 1,ifconfig命令的功能:显示所有正在启动的网卡的详细信息或设定系统中网卡的IP地址. 2. 使用ifup和ifdown命令启动和停止网卡(详见linux系统管理P42 ...
- Linux学习之RPM包管理-yum管理(十七)
Linux学习之RPM包管理-yum管理 目录 IP地址配置 网络yum源 yum命令 光盘yum源搭建 IP地址配置 IP+子网掩码就可以在局域网(内网)使用. IP+子网掩码+网关+DNS就可以访 ...
- linux软件管理之yum管理rpm包
YUM 使用官方源 ==================================================================================== 阿里镜像站 ...
- Linux系统分区 进程管理 软件包安装
对于一块新的磁盘来说,系统能够使用需要有分区.格式化文件系统.挂载等主要操作,下面通过命令的方式对一块磁盘进行操作. 一. Linux系统分区 1.1 在虚拟机开机前选择虚拟机配置,添加一个新的SCS ...
- linux rpm包管理 yum管理
1. 软件包的管理 RPM的定义:RPM就是Red Hat Package Manger(红帽软件包管理工具)的缩写. RPM包不需要编译,本身就是二进制,而源码包需要先编译成系统识别的二进制文件,才 ...
随机推荐
- OA Framework - How to Find the Correct Version of JDeveloper to Use with E-Business Suite 11i or Release 12.x (Doc ID 416708.1)
APPLIES TO: Oracle Applications Framework - Version 11.5.10.0 to 12.2.2 [Release 11.5.10 to 12.2] In ...
- VBS基础篇 - 常用函数
Option Explicit '*********************************Date/Time函数******************************* 'CDate函 ...
- 11.2Daily Scrum
人员 任务分配完成情况 明天任务分配 王皓南 做文件的网页和数据库连接,任务编号771 实现视频上传的功能 申开亮 实现视频浏览的功能,任务编号772 实现视频浏览的功能 王宇杰 后台测试,任务编号7 ...
- PSPO表格
一.项目计划总结: 周活动总结表 日期 任务 听课 编写程序 阅读课本 准备考试 日总计 周日 周一 周二 300 100 30 430 周三 100 50 30 180 周四 200 ...
- text-overflow 与 word-wrap:设置使用一个省略标记...标示对象内文本的溢出。
text-overflow 与 word-wrap text-overflow用来设置是否使用一个省略标记(...)标示对象内文本的溢出. 语法: 但是text-overflow只是用来说明文字溢出时 ...
- 安装Windows7出现:”安装程序无法创建新的系统分区 也无法定位系统分区“ 终极解决方案
参考:地址 解决方法: 1.先格式化一下你要装的那个盘,然后,拔出U盘,啥也别动,只拔出U盘就行,再装上U盘,然后刷新一下[选硬盘那里的高级选项中有格式化和刷新],再选择要安装的硬盘点下一步,OK了, ...
- 重装系统必做之——更换Windows系统的默认临时文件的存储目录
作为一名计算机爱好者,重装电脑是家常便饭,但是重装电脑的目的无非就是: 1.操作系统更新换代: 2.系统速度太慢: 或者更多.... 我们大多数目的都是上述中第2点,有时候是否仅仅重装系统而忽略了一些 ...
- 处理XML的几种方式
晚上突然收到codeproject发来的订阅邮件,上面是关于用DOM出来XML,想总结一下有哪些方式可以轻松得处理XML DOM:这个再古老不过了,貌似大学开XML课程的时候,老师首推DOM XPat ...
- 【转】C#通过Expression获取指定属性的名称
原文:http://www.cnblogs.com/powerwu/articles/3393582.html 大家所熟悉的是通过对象属性来访问该属性的值,或是由字符串通过反射来获取属性,并取值.今天 ...
- 创建REST服务应用程序
Web服务类别有两种,一种是基于SOAP协议的服务,另一种是基于HTTP协议的REST架构风格的服务.REST服务的数据格式有两种:XML 和 JSON,REST服务已被大量应用于移动互联网中. 本文 ...