Board logo

标题: rpm、yum、编译安装轻松管理centos7程序包(16) [打印本页]

作者: look_w    时间: 2019-2-18 20:24     标题: rpm、yum、编译安装轻松管理centos7程序包(16)

history:yum事物历史

# yum history
Loaded plugins: fastestmirror, langpacks
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
     6 | root <root>              | 2016-03-19 20:27 | Erase          |    1 EE
     5 | root <root>              | 2016-03-19 20:26 | I, U           |   72 ss
     4 | root <root>              | 2016-03-19 20:15 | I, U           |    8   
     3 | root <root>              | 2016-03-19 20:06 | Reinstall      |    1   
     2 | root <root>              | 2016-03-19 20:04 | Install        |    4   
     1 | System <unset>           | 2016-03-01 06:56 | Install        | 1244

       f、安装及升级本地程序包

        localinstall:本地安装(可以解决依赖关系)

# ll
total 3592
-rw-r--r-- 1 root root 2823272 Mar 19 20:43 httpd-2.4.6-40.el7.centos.x86_64.rpm

# yum localinstall httpd-2.4.6-40.el7.centos.x86_64.rpm -y
Loaded plugins: fastestmirror, langpacks
Examining httpd-2.2.15-47.el6.centos.3.x86_64.rpm: httpd-2.2.15-47.el6.centos.3.x86_64
Marking httpd-2.2.15-47.el6.centos.3.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-47.el6.centos.3 will be installed
--> Processing Dependency: httpd-tools = 2.2.15-47.el6.centos.3 for package: httpd-2.2.15-47.el6.centos.3.x86_64
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-47.el6.centos.3.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd-2.2.15-47.el6.centos.3.x86_64
...................................
Running transaction
  Installing : httpd-2.4.6-40.el7.centos.x86_64                                         1/1
  Verifying  : httpd-2.4.6-40.el7.centos.x86_64                                         1/1
Installed:
  httpd.x86_64 0:2.4.6-40.el7.centos               
  Complete!

        localupdate:本地升级

            # 升级与次相同,找到新的包升级就ok

       g、包组管理的相关命令

        grouplist:查看包组列表

# yum grouplist
Loaded plugins: fastestmirror, langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Available environment groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   Basic Web Server
   Virtualization Host
   Server with GUI
   GNOME Desktop
   KDE Plasma Workspaces
   Development and Creative Workstation
Available Groups:
   Compatibility Libraries
   Console Internet Tools
   Development Tools
   Graphical Administration Tools
   Legacy UNIX Compatibility
   Scientific Support
   Security Tools
   Smart Card Support
   System Administration Tools
   System Management
Done




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0