apt-get 명령어의 사용 |
- apt-get 명령어는 우분투(리눅스)의 패키지를 관리하는 명령어이다.
- 사용법 : apt-get [옵션] command [pkg1 [pkg2 ...]]
- 옵션 -y : yes or no 질문없이 모두 yes로 진행
- 다음은 전형적인 apt-get 의 사용법이다.
//#1. 패키지 목록을 업데이트 한다.
$ sudo apt-get update
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Get:8 https://deb.nodesource.com/node_7.x xenial InRelease [4,634 B]
Fetched 334 kB in 1s (321 kB/s)
Reading package lists... Done
//#2. 패키지를 설치한다.
// 새롭게 설치할 게 마땅히 없어서 결과는 새로 설치한 결과라기 보다는.... ㅠㅠ
$ sudo apt-get install -y tree
Reading package lists... Done
Building dependency tree
Reading state information... Done
tree is already the newest version (1.7.0-3).
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 92 not upgraded.
- command 목록 참조
update - Retrieve new lists of packages
upgrade - Perform an upgrade
install - Install new packages (pkg is libc6 not libc6.deb)
remove - Remove packages
autoremove - Remove automatically all unused packages
purge - Remove packages and config files
source - Download source archives
build-dep - Configure build-dependencies for source packages
dist-upgrade - Distribution upgrade, see apt-get(8)
dselect-upgrade - Follow dselect selections
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies
changelog - Download and display the changelog for the given package
download - Download the binary package into the current directory
- apt-get update 와 upgrade 명령은 다음 그림과 같이 차이가 있다.
- option 목록 참조
-h This help text.
-q Loggable output - no progress indicator
-qq No output except for errors
-d Download only - do NOT install or unpack archives
-s No-act. Perform ordering simulation
-y Assume Yes to all queries and do not prompt
-f Attempt to correct a system with broken dependencies in place
-m Attempt to continue if archives are unlocatable
-u Show a list of upgraded packages as well
-b Build the source package after fetching it
-V Show verbose version numbers
-c=? Read this configuration file
-o=? Set an arbitrary configuration option
- 기타 apt-get 명령어 관련 다음의 페이지들을 참조
https://linux.die.net/man/8/apt-get
apt-get(8) - Linux man page
apt-get(8) - Linux man page Name apt-get - APT package handling utility - command-line interface Synopsis apt-get [options] [-o config=string] [-c=cfgfile] command [pkg] Description apt-get is the command-line tool for handling packages, and may be conside
linux.die.net
https://www.tecmint.com/useful-basic-commands-of-apt-get-and-apt-cache-for-package-management/
25 Useful Basic Commands of APT-GET and APT-CACHE for Package Management
This article explains how quickly you can learn to install, remove, update and search software packages using apt-get and apt-cache commands from the command line. This article provides some useful commands that will help you to handle package management i
www.tecmint.com
https://snrnsnrnd.tistory.com/12
Ubuntu 18.04 LTS apt-get 명령어 사용법
apt-get 명령어는 우분투에서 새로운 패키지(프로그램을 설치할때 가장 보편적으로 사용하고 있는 강력한 명령어 입니다. 오늘은 이 apt-get 명령어 옵션중 가장 보편적으로 사용하는 대표적인 명��
snrnsnrnd.tistory.com
apt 리포지터리(패키지 저장소)와 관련 |
- apt-get 명령어와 리포지터리와의 동작 매커니즘에 대해서는 다음 문서를 참조
https://kyumoonhan.tistory.com/21
[Linux] apt-get 작동원리와 패키지저장소
apt-get 작동원리 저장소 URL : /etc/apt/sources.list /etc/apt/sources.list 에 vi로 접속하면 각 패키지의 경로를 미러사이트로 지정하여 apt-get을 사용 가능 하다. 국내 우분투 미러사이트 1. 카이스트서버 (..
kyumoonhan.tistory.com
- apt 리포지터리가 붐빈다는 느낌이 들면 한국의 미러사이트로 변경하면 방법
Ubuntu 소프트웨어 업데이트 서버를 daum으로 변경 (sources.list)
최초 Ubuntu 설치 시 Ubuntu SW 업데이트를 위한 서버가 kr.archive.ubuntu.com 으로 되어있다. 이 주소를 그대로 사용할 수도 있으나, 속도가 문제다. 나의 소중한 시간을 위하여 daum 서버 (daumkakao로 변경)..
inasie.tistory.com
- deb 패키지 만들기 및 프라이빗 리포지터리 등록과 관련된 것은 다음을 참조
https://www.joinc.co.kr/w/man/12/deb
우분투 apt 패키지 저장소 구축
웹 서버 설치 및 패키지 디렉토리 생성
www.joinc.co.kr
[패키지 설치] 우분투(Ubuntu) agt-get 저장소 추가 및 인증키 등록 방법
우분투로 패키지 설치시 애를 먹어서.. 100% 또 찾아볼 거란것을 알기때문에 글 남김. 아래 블로그에서 가져왔음. 우분투에서 apt-get 을 이용하여 패키지 설치시 필요에 따라 관련 패키지에 대�
springloops.wordpress.com
apt 명령어의 사용 |
- apt 명령어는 apt-get 명령어 이후에 나온 것으로 유사한 기능을 하고, 사용법도 유사하다.
- 일단, 입력 문자수가 짧다.
- apt-get 과 apt-cache 를 결합한 명령어이다.
- 사용법 : apt [옵션] command [pkg1 [pkg2 ...]]
- 자세한 내용은 다음의 페이지들을 참조
http://taewan.kim/tip/apt-apt-get/
Ubuntu 패키지 관리 툴: apt 사용법
우분투 패키지 관리 툴인 apt와 apt-get의 차이를 알아보고 사용법을 정리합니다.
taewan.kim
'ubuntu' 카테고리의 다른 글
[ubuntu] 표준 입출력과 리디렉션으로 파일 만들기 (0) | 2020.05.22 |
---|