首页 > 系统 > Linux >

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

2017-04-20

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/my1.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

:wq! #save and quit

[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

相关文章
最新文章
热点推荐