重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3501|回复: 5
打印 上一主题 下一主题

[系统管理] dnf已经取代 yum

[复制链接]
跳转到指定楼层
楼主
发表于 2018-11-28 15:00:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
从rhel8.0 beta版,可以看出,yum已经被dnf取代,

yum命令还可以用。
[root@sztech8 yum.repos.d]# yum repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
没有可用的软件仓库
[root@sztech8 yum.repos.d]#
[root@sztech8 yum.repos.d]#
[root@sztech8 yum.repos.d]# which yum
/usr/bin/yum
[root@sztech8 yum.repos.d]# ls -ltr /usr/bin/yum
lrwxrwxrwx. 1 root root 5 10月 15 22:25 /usr/bin/yum -> dnf-3

yum 命令还可以用,但已经被转向到 dnf

[root@sztech8 yum.repos.d]# dnf --version
4.0.4
  已安装: dnf-0:4.0.4-1.el8.noarch 在 2018年11月28日 星期三 06时12分54秒
  构建    :Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> 在 2018年10月15日 星期一 14时25分44秒
  已安装: rpm-0:4.14.2-4.el8.x86_64 在 2018年11月28日 星期三 06时12分09秒
  构建    :Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> 在 2018年10月22日 星期一 09时19分33秒
[root@sztech8 yum.repos.d]#

目前dnf版本为 4.0.4




分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2018-11-28 15:10:12 | 只看该作者
增加一个repo

dnf config-manager  --add-repo file:///mnt/BaseOS

回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2018-11-28 15:10:58 | 只看该作者
[root@sztech8 yum.repos.d]# dnf repolist all
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
上次元数据过期检查:0:00:14 前,执行于 2018年11月28日 星期三 15时10分27秒。
仓库标识                                                        仓库名称                                                                                                    状态
mnt_BaseOS                                                      created by dnf config-manager from file:///mnt/BaseOS                                                       启用: 1,688
回复 支持 反对

使用道具 举报

地板
 楼主| 发表于 2018-11-28 15:14:48 | 只看该作者
[root@sztech8 yum.repos.d]# dnf grouplist available
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
上次元数据过期检查:0:03:03 前,执行于 2018年11月28日 星期三 15时11分31秒。
可用环境组:
   Workstation
   Custom Operating System
   Server
可用组:
   Container Management
   .NET Core Development
   RPM Development Tools
   智能卡支持
   开发工具
   Headless Management
   传统 UNIX 兼容性
   网络服务器
   科学记数法支持
   安全性工具
   系统工具

回复 支持 反对

使用道具 举报

5#
 楼主| 发表于 2018-11-28 15:15:08 | 只看该作者
[root@sztech8 yum.repos.d]# dnf grouplist available --hidden
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
上次元数据过期检查:0:03:24 前,执行于 2018年11月28日 星期三 15时11分31秒。
可用环境组:
   Workstation
   Custom Operating System
   Server
可用组:
   备份客户端
   base-x
   Container Management
   调试工具
   桌面调试和运行工具
   .NET Core Development
   字体
   FTP 服务器
   GNOME 应用程序
   图形生成工具
   虚拟机代理
   虚拟机桌面代理
   输入法
   互联网应用程序
   互联网浏览器
   Java 平台
   传统 X Windows 系统的兼容性
   多媒体
   nonmodular-appstream
   办公套件和生产率
   Atomic Host ostree support
   KVM platform specific packages
   Hyper-v platform specific packages
   打印客户端
   远程桌面客户端
   RPM Development Tools
   智能卡支持
   TeX formatting system
   虚拟化客户端
   虚拟化 Hypervisor
   虚拟化平台
   虚拟化工具
   基本网页服务器
   附加开发
   基本
   binary-intentionally-in-rhel-8
   开发工具
   拨号网络支持
   目录客户端
   目录服务器
   文件及存储服务器
   GNOME
   硬件监控工具
   Hardware Support
   Headless Management
   Infiniband 支持
   大系统性能
   传统 UNIX 兼容性
   邮件服务器
   主框架访问
   网络文件系统客户端
   网络服务器
   联网工具
   Common NetworkManager submodules
   性能工具
   平台开发
   Python Web
   科学记数法支持
   安全性工具
   Server product core
   Windows 文件服务器
   系统工具
   Workstation product core
回复 支持 反对

使用道具 举报

6#
 楼主| 发表于 2018-11-28 15:21:57 | 只看该作者
查看一下包组里面的组件:

[root@sztech8 yum.repos.d]# dnf groupinfo base-x
Failed to set locale, defaulting to C
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:09:43 ago on Wed Nov 28 15:11:31 2018.

Group: base-x
Description: Local X.org display server
Mandatory Packages:
   glx-utils
   mesa-dri-drivers
   plymouth-system-theme
   xorg-x11-drv-ati
   xorg-x11-drv-evdev
   xorg-x11-drv-fbdev
   xorg-x11-drv-intel
   xorg-x11-drv-libinput
   xorg-x11-drv-nouveau
   xorg-x11-drv-qxl
   xorg-x11-drv-vesa
   xorg-x11-drv-vmware
   xorg-x11-drv-wacom
   xorg-x11-server-Xorg
   xorg-x11-utils
   xorg-x11-xauth
   xorg-x11-xinit
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-17 16:31 , Processed in 0.099959 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表