centos 7 및 redhat 7 인터넷이 안될 경우 cd mount 후 yum install 방법

centos 7 redhat 7 인터넷이 안될 경우 cd mount yum install 방법

#
mkdir /media

#
mount /dev/sr0 /media

create
the new repo

#
vi /etc/yum.repos.d/local.repo

[LocalRepo]

name=Local
Repository

baseurl=file:///media

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 (redhat-release)

1.
[LocalRepo] – Name of the Section.

2. name =
Name of the repository

3. baseurl =
Location of the package

4. Enabled =
Enable repository

5 gpgcheck=
Enable secure installation

6. gpgkey=
Location of the key

#
yum clean all

Leave a Comment