"Apt"의 두 판 사이의 차이

wwiki
이동: 둘러보기, 검색
(설치가능한 버전)
(non-free 추가)
14번째 줄: 14번째 줄:
 
==non interactive로 설치==
 
==non interactive로 설치==
 
  $ export DEBIAN_FRONTEND=noninteractive && apt-get install -y postfix
 
  $ export DEBIAN_FRONTEND=noninteractive && apt-get install -y postfix
==non-free 추가==
+
==소스 리스트==
/etc/apt/sources.list 파일을 다음과 같이 수정한다.
+
설정파일은 /etc/apt/sources.list에 있고, /etc/apt/sources.list.d에 추가 설정파일들이 있다.  
  
예시는 데비안 10(buster)이다.
+
=== 포맷 ===
<syntaxhighlight lang="text">
+
설정파일은 다음과 같은 포맷이다.<syntaxhighlight lang="sources.list">
deb http://deb.debian.org/debian buster main non-free
+
deb http://site.example.com/debian distribution component1 component2 component3
deb-src http://deb.debian.org/debian buster main non-free
+
</syntaxhighlight>
  
deb http://deb.debian.org/debian-security/ buster/updates main non-free
+
==== Archive type ====
deb-src http://deb.debian.org/debian-security/ buster/updates main non-free
+
deb: binary package를 가르킨다.
  
deb http://deb.debian.org/debian buster-updates main non-free
+
deb-src: source package
deb-src http://deb.debian.org/debian buster-updates main non-free
+
 
 +
==== Repository URL ====
 +
리파지토리 경로.
 +
 
 +
미러: https://www.debian.org/mirror/list
 +
 
 +
==== Distribution ====
 +
릴리즈 코드명, 코드별칭(jessie, stretch, buster, sid) 혹은 릴리즈 클래스(oldstable, stable, testing, unstable)일 수 있다.
 +
 
 +
==== Component ====
 +
main: 데비안 자유 소프트웨어 지침(DFSG, The Debian Free Software Guidelines)준수 패키지로 구성된다.
 +
 
 +
contrib: DFSG준수 소프트웨어를 포함하지만 main과 의존성이 없는 것들.
 +
 
 +
non-free: DFSG에 응하지 않은 소프트웨어를 포함한다.
 +
 
 +
===예제===
 +
Debian 10/Buster의 /etc/apt/sources.list 파일을 다음과 같이 수정한다.<syntaxhighlight lang="text">
 +
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
 
</syntaxhighlight>
 
</syntaxhighlight>

2021년 1월 7일 (목) 04:16 판

옵션

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)일 수 있다.

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