hoim
티스토리 뷰
1️⃣yum과 apt-get 그리고 2️⃣wget과 curl.
무언가를 다운받거나 설치할 때 쓰이는 리눅스 명령어이다. 어떤 차이가 있는 지 알아보자.
1️⃣ yum 과 apt-get
repository에서 패키지를 내려받는 명령어.
yum(Yellow dog Updater, Modified)
Redhat 계열 리눅스에서 사용하는 자동 업데이터 겸 패키지 설치, 삭제 도구.
rpm(Redhat Package Manager)은 yum 이전에 사용하던 패키지 관리 도구이다. rpm은 의존성이 있는 패키지가 있을 경우, 수동으로 다운받아야 했으며 이러한 문제가 개선된 것이 yum이다. 의존성 관리가 되어 필요한 패키지를 알아서 다운받는다.
$yum list available
$yum list installed
$yum install 패키지명
//설치된 패키지명, 경로 확인
$rpm -qa | grep 패키지명
$rpm -ql 패키지명
//repository 확인
$yum repolist
What is yum and how do I use it? - Red Hat Customer Portal
Where can I find a guide to yum? How do I install an RPM using yum? Can I use yum to find which rpm provides a particular binary? Is there a command reference for yum?
access.redhat.com
apt(Advanced Packaging Tool)
데비안 계열 리눅스에서 사용하는 패키지 도구. 우분투, 라즈베리 OS 등 대부분이 데비안을 기반으로 한다. apt, apt-get 명령어로 사용한다.
//설치된 패키지 확인(Ubuntu 14.04 and above)
$apt --installed list
// 설치된 패키지 확인
$dpkg —get-selections | grep 패키지명
$dpkg -l
Package Management | Ubuntu
Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.
ubuntu.com
2️⃣ wget과 curl
웹서버에서 컨텐츠를 가져오는 명령어이며 둘은 거의 유사하다. 설치가 되어 있지 않다면 yum, apt-get 명령어를 통해 설치해준다.
wget
http, https, ftp 프로토콜을 통해 내려받기를 지원한다.
$wget http://www.example.com/
cURL(client URL)
http, https, ftp, ldap mqtt, file, POP3, IMAP, SMTP 등의 프로토콜을 지원한다. 단방향인 wget 와 다르게 양방향을 지원하므로, 업로드가 가능하다. libcurl에 의해 구동하며, 크로스 플랫폼에 유리하다.
$curl www.example.com
curl vs Wget
Related: FTP vs HTTP, bittorrent vs HTTP, curl vs libcurl and curl vs HTTPie. curl vs Wget The main differences as I (Daniel Stenberg) see them. Please consider my bias towards curl since after all, curl is my baby - but I contribute to Wget as well. Pleas
daniel.haxx.se
'LINUX' 카테고리의 다른 글
리눅스 마스터 2급 정리 (0) | 2022.06.12 |
---|---|
LVM이란 (0) | 2022.06.06 |
RAID이란 (0) | 2022.06.06 |
- Total
- Today
- Yesterday
- 구독
- ToyProject
- Python
- webcrawling
- 리눅스
- raid
- 노개북
- 뉴스레터모아보기
- lvm
- 노마드북클럽
- 개발자
- ebook
- 클린코드
- 코딩
- apt
- 리눅스마스터
- Linux
- yum
- O'Reilly
- ACM
- Selenium
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |