반응형
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
반응형
'# IT # > Linux' 카테고리의 다른 글
HP Gen9 서버 linux 7 (Redhat , Centos) 설치방법 (0) | 2017.04.28 |
---|---|
linux yum install 관련 명령어 모음 (0) | 2017.04.21 |
Linux init 명령어 모음 (Centos , Redhat) (0) | 2017.04.21 |
Ubuntu ( 우분투 ) root ( 루트 ) 계정 만들기 (0) | 2017.01.09 |
redhat 이미지 마운트 방법 (0) | 2017.01.05 |