"Apt"의 두 판 사이의 차이
(→non interactive로 설치) |
(→소스 리스트) |
||
(같은 사용자의 중간 판 3개는 보이지 않습니다) | |||
63번째 줄: | 63번째 줄: | ||
deb-src http://deb.debian.org/debian buster-updates main | deb-src http://deb.debian.org/debian buster-updates main | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | === apt-key === | ||
+ | Usage: apt-key [--keyring file] [command] [arguments] | ||
+ | |||
+ | Manage apt's list of trusted keys | ||
+ | |||
+ | apt-key add <file> - add the key contained in <file> ('-' for stdin) | ||
+ | |||
+ | apt-key del <keyid> - remove the key <keyid> | ||
+ | |||
+ | apt-key export <keyid> - output the key <keyid> | ||
+ | |||
+ | apt-key exportall - output all trusted keys | ||
+ | |||
+ | apt-key update - update keys using the keyring package | ||
+ | |||
+ | apt-key net-update - update keys using the network | ||
+ | |||
+ | apt-key list - list keys | ||
+ | |||
+ | apt-key finger - list fingerprints | ||
+ | |||
+ | apt-key adv - pass advanced options to gpg (download key) | ||
+ | $ wget -qO - <nowiki>https://도메인/archive.key</nowiki> | sudo apt-key add - | ||
+ | <br /> | ||
+ | [[분류:명령어]] | ||
+ | [[분류:Debian]] |
2022년 6월 22일 (수) 02:22 기준 최신판
목차
Commands[편집 | 원본 편집]
search[편집 | 원본 편집]
search in package descriptions
$ apt search [패키지명]
list[편집 | 원본 편집]
list packages based on package names
$ apt list --installed | grep [패키지명]
show[편집 | 원본 편집]
show package details
non interactive로 설치[편집 | 원본 편집]
$ export DEBIAN_FRONTEND=noninteractive && apt-get install -y postfix
소스 리스트[편집 | 원본 편집]
설정파일은 /etc/apt/sources.list에 있고, /etc/apt/sources.list.d에 추가 설정파일들이 있다.
포맷[편집 | 원본 편집]
설정파일은 다음과 같은 포맷이다.
deb http://site.example.com/debian distribution component1 component2 component3
Archive type[편집 | 원본 편집]
deb: binary package를 가르킨다.
deb-src: source package
Repository URL[편집 | 원본 편집]
리파지토리 경로.
미러: https://www.debian.org/mirror/list
Distribution[편집 | 원본 편집]
릴리즈 코드명, 코드별칭(jessie, stretch, buster, sid) 혹은 릴리즈 클래스(oldstable, stable, testing, unstable)일 수 있다.
stable: 안정성 검증을 마친 패키지
backports: stable보다 더 최신판
testing: 안정성을 시험하는 패키지를 저장한다.
unstable: sid라고도 하며, 개발하고 있는 패키지이다.
experimental: 매우 실험적인 패키지이다.
Component[편집 | 원본 편집]
main: 데비안 자유 소프트웨어 지침(DFSG, The Debian Free Software Guidelines)준수 패키지로 구성된다.
contrib: DFSG준수 소프트웨어를 포함하지만 main과 의존성이 없는 것들.
non-free: DFSG에 응하지 않은 소프트웨어를 포함한다.
예제[편집 | 원본 편집]
Debian 10/Buster의 /etc/apt/sources.list 파일을 다음과 같이 수정한다.
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main
apt-key[편집 | 원본 편집]
Usage: apt-key [--keyring file] [command] [arguments]
Manage apt's list of trusted keys
apt-key add <file> - add the key contained in <file> ('-' for stdin)
apt-key del <keyid> - remove the key <keyid>
apt-key export <keyid> - output the key <keyid>
apt-key exportall - output all trusted keys
apt-key update - update keys using the keyring package
apt-key net-update - update keys using the network
apt-key list - list keys
apt-key finger - list fingerprints
apt-key adv - pass advanced options to gpg (download key)
$ wget -qO - https://도메인/archive.key | sudo apt-key add -