yum软件仓库的搭建

yum 软件仓库的搭建

[root@localhost ~]# df               1.查看系统资源挂载的目录 eg:/run/media/root/RHEL-8-0-0-BaseOS-x86_64
Filesystem     1K-blocks    Used Available Use% Mounted on
devtmpfs          910528       0    910528   0% /dev
tmpfs             924700       0    924700   0% /dev/shm
tmpfs             924700    9884    914816   2% /run
tmpfs             924700       0    924700   0% /sys/fs/cgroup
/dev/nvme0n1p3   8181760 4005548   4176212  49% /
/dev/nvme0n1p1    199328  141296     58032  71% /boot
tmpfs             184940      16    184924   1% /run/user/42
tmpfs             184940    3488    181452   2% /run/user/0
/dev/sr0         6935944 6935944         0 100% /run/media/root/RHEL-8-0-0-BaseOS-x86_64
[root@localhost ~]# cd /etc/yum.repos.d/  2.需在/etc/yum.repos.d/目录下编辑.repo配置文件
[root@localhost yum.repos.d]# vim westos.repo
[BaseOS]name=rhel8.0 BaseOS
baseurl=file:///run/media/root/RHEL-8-0-0-BaseOS-x86_64/BaseOS
gpgcheck=0    
enabled=1

[AppStream]                                                          **仓库名称**
name=rhel8.0 AppStream                                               **仓库描述**
baseurl=file:///run/media/root/RHEL-8-0-0-BaseOS-x86_64/AppStream    **资源路径**
gpgcheck=0                                                           **软件包授权检测开关**
enabled=1                                                            **软件包授权码**
[root@localhost yum.repos.d]# yum repolist     **在rhel8中 yum dnf 都可以用,自行尝试   dnf repolist** 
                                               **yum repolist  列出仓库信息,看搭建的yum软件仓库是否成功**
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.
Repository 'AppStream' is missing name in configuration, using id.
AppStream                                        83 MB/s | 5.3 MB     00:00    
rhel8.0 BaseOS                                   85 MB/s | 2.2 MB     00:00    
repo id                           repo name                               status
AppStream                                                                 4,672
BaseOS                            rhel8.0 BaseOS                          1,658
**如上。yum软件仓库搭建成功**
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值