How to set up minimal Redhat 7.3 - [1]yum install local sources

Generally speaking, customers always use the minimal mode installation of operate system. Now let me give the guide to setup it.

1.Configuration of yum sources of Redhat 7.3

[1] mount the CDROM to /mnt/cdrom

#mount /dev/cdrom /mnt/cdrom

[2]make a new configuration file of yum resources.

#touch /etc/yum.repos.d/rhel7.repo

[3]configuration local yum resources.

  • cd /etc/yum.repos.d/
  • touch rhel7.repo
  • vi rhel7.repo
[rhel-yum]
name=rhel7   #my yum sources name
baseurl=file:///mnt/cdrom #local yum resources path
enabled=1                 #enable yum resources, 0 disable/1 enable
gpgcheck=0             #check GPG-KEY, 0 not check/1 check

Http yum repository configuration:

[rhel74]
name=rhel74   #my yum sources name
baseurl=http://192.168.81.130/rhel74/ #remote yum repository path
enabled=1       #enable yum resources, 0 disable/1 enable
gpgcheck=1
gpgkey=http://192.168.81.130/rhel74/RPM-GPG-KEY-redhat-release            

yum install tftp -y –nogpgcheck

[4]Now local yum resources can work. Let’s test it.

$ yum clean all     # clear the cache of yum
$ yum makecache     # make cache the software information fo local yum resources.

[5] To install GUI

yum -y groupinstall “Server with GUI”, then execute startx to check it.
To uninstall the software

# yum -y remove httpd         
# yum -y remove ftp
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值