Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- MIPS
- Pipelining
- control
- php
- Java
- web
- Linux
- while
- Algorithm
- architecture
- html
- MacOS
- system
- DS
- Class
- mysql
- computer
- python
- DB
- DoM
- DATAPATH
- javascript
- instruction
- for
- github
- XML
- CSS
- react
- data structure
- function
Archives
- Today
- Total
YYYEJI
[Linux] 리눅스에서 패키치 설치하기 본문
728x90
리눅스를 사용하게 되면 패키지를 관리해야 하는데 관리를 쉽게 도와주는 tool이 있습니다.
- apt-get / get(advanced package tool) - 데미안 or Ubuntu 에서 사용합니다.
- yum(Hello dog updater, modified) - 레드헷 or CentOS에서 사용합니다.
동작 | RedHat or CentOS | Debian or Ubuntu |
패키지 설치 | yum install 패키지명 | apt install 패키지명 apt-get install 패키지명 |
패키지 제거 | yum remove 패키지명 | apt remove 패키지명 apt-get remove 패키지명 |
업데이트 확인 | yum check-update | apt-get -s upgrade (패키지 업그레이드) apt-get update (새로 나온 업데이트 버전 list 출력) |
- apt는 자주 사용하는 apt-get 간단한 버전입니다.
- apt-get는 option 많고 복잡합니다.
apt-get / apt 명령어
apt 명령 | 기존 명령 | 설명 |
apt install | apt-get install | 패키지 설치 |
atp remove | apt-get remove | 패키지 살제 (설정파일은 삭제하지 않음) |
apt purge | apt-get purge | 패키지와 관련 설정 제거 |
apt update | apt-get update | 사용 가능한 패키지와 버전 리스트 업데이트 |
apt upgrade | apt-get upgrade | 모든 패키지 업그레이드 |
apt autoremove | apt-get autoremove | 사용하지 패키지 제거 |
apt full-upgrade | apt-get dist-upgrade | 고려한 패키지 업그레이드 |
apt search | apt-cache search | 프로그램 검색 |
apt show | apt-cache show | 상세 정보 출력 |
다양한 package 다운로드하기
$ apt-get install vim // vim 다운로드
$ apt-get install git // git 다운로드
$ apt-get install python // python 다운로드
◡̈
'Linux' 카테고리의 다른 글
[Linux] 파일의 속성 정리 (0) | 2022.07.23 |
---|---|
[Linux] 쉘(Shell)의 기능과 종류 (0) | 2022.07.23 |
[Linux] vim/vi 명령어 정리 (0) | 2022.07.18 |
[Linux] 리눅스 기본 명령어-2 (0) | 2022.07.17 |
[Linux] 리눅스 기본 명령어-1 (0) | 2022.07.17 |