Mac에서 yum 사용하기 (Docker 에서 리눅스 사용)

Mac에서 yum 사용하기 (Docker 에서 리눅스 사용)

Docker를 사용하면 Linux 환경을 Mac에서 쉽게 사용할 수 있습니다. 이를 통해 yumdownloader를 실행할 수 있습니다.

Docker 설치: Mac에 Docker가 설치되어 있어야 합니다. Docker for Mac을 설치합니다.

CentOS Docker 컨테이너 실행:

1
2
코드 복사
docker run -it centos:latest /bin/bash

yum-utils 설치 및 yumdownloader 사용:

1
2
yum install -y yum-utils
yumdownloader <패키지명>

다운로드한 패키지를 Mac으로 복사:

다운로드한 파일을 Docker 컨테이너에서 Mac으로 복사합니다.

1
docker cp <container_id>:/path/to/downloaded/rpm /path/to/local/directory

Mac에서 yum 사용하기 (Docker 에서 리눅스 사용)

https://hamin7.github.io/2024/06/24/Linux-Use-In-Mac/

Author

hamin

Posted on

2024-06-24

Updated on

2024-06-24

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.
You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.