적절한 source.list를 최소화하는 방법

적절한 source.list를 최소화하는 방법

줄을 여러 줄로 잘라낼 수 있다고 생각합니다. 그래서 조언이 필요해요. 이러한 source.list를 어떻게 개선할 수 있나요?

apt/sources.list, 최신 데비안 버전:

deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib
deb http://ftp.debian.org/ wheezy-updates main contrib
deb-src http://ftp.debian.org/ wheezy-updates main contrib
deb http://ftp.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.debian.org/debian/ wheezy main contrib non-free
deb http://ftp.debian.org/debian sid main

답변1

resources.list의 구조는 "최소화하다". 이 줄을 더 압축해도 실질적인 이점은 없습니다. 나열된 모든 저장소에는 다음이 있어야 합니다.

type [ options ] uri suite [component1] [component2] [...]

또는 rfc822 형식

Types: deb deb-src
URIs: http://example.com
Suites: stable testing
Sections: component1 component2
Description: short
 long long long
[option1]: [option1-value]

귀하의 source.list는 이미 소스를 나열할 수 있는 가장 짧고 효율적인 방법의 이점을 누리고 있습니다. 물론, 다른 구성 요소로 동일한 줄을 반복하고 별도로 처리할 수 있습니다.

deb http://security.debian.org/ wheezy/updates main
deb http://security.debian.org/ wheezy/updates contrib

그러나 APT의 경우 이는 다음과 같습니다.

deb http://security.debian.org/ wheezy/updates main contrib

파싱하는 중.

이러한 source.list를 어떻게 개선할 수 있나요?

"개선"의 여지는 없습니다. 파일이 유효한 한 APT는 불평하지 않습니다.

관련 정보