
Ubuntu 10.04에 패키지가 자동으로 설치되어 있지만 lm-sensors
이에 의존하는 패키지를 찾을 수 없습니다.
$ aptitude show lm-sensors
Package: lm-sensors
New: yes
State: installed
Automatically installed: yes
Version: 1:3.1.2-2
Priority: extra
Section: utils
Maintainer: Ubuntu Developers <[email protected]>
Uncompressed Size: 455k
Depends: sed (>= 4.0.5-1), lsb-base (>= 3.2-13), libc6 (>= 2.3.4), libsensors4
(>= 1:3.1.1), perl
Recommends: fancontrol
Suggests: sensord, read-edid, i2c-tools
Description: utilities to read temperature/voltage/fan sensors
Lm-sensors is a hardware health monitoring package for Linux. It allows you to
access information from temperature, voltage, and fan speed sensors. It works
with most newer systems.
This package contains programs to help you set up and read data from lm-sensors.
Homepage: http://www.lm-sensors.org
$ aptitude search ~Dlm-sensors
p ksensors - lm-sensors frontend for KDE
p sensord - hardware sensor information logging daemon
p wmgtemp - Temperature sensor dockapp for Window Make
p wmtemp - WM dock applet displaying lm_sensors tempe
설치된 lm-sensors 종속성을 찾을 수 없습니다. 그럼 왜 아직 여기에 있는 걸까요?
?
질문 하나 더: 양식에서 패턴을 검색하는 방법:
$ sudo aptitude search ?depends(lm-sensors)
bash: syntax error near unexpected token `('
내가 여기서 뭘 잘못하고 있는 걸까?
답변1
마지막 매개변수를 인용하거나 이스케이프 처리해야 합니다. 따옴표가 없는 대괄호( ... )는 서브셸에서 명령을 실행하는 데 사용됩니다. 예를 들어
aptitude search '?depends(lm-sensors)'
또는
aptitude search \?depends\(lm-sensors\)
(이것은 쉘 glob 패턴이며 이스케이프되어야 합니다... 그러나 이 특별한 경우에는 ?
실행할 때 현재 디렉토리에 비슷한 이름을 가진 파일이 있는 경우에만 실제 차이가 있습니다.)xdepends(lm-sensors)
aptitude search
그런데 aptitude search
루트 권한은 필요하지 않으며 sudo
.
답변2
미안해요, 제가 너무 멍청해서요. 자동 패키지는 종속된 경우뿐만 아니라 사전 종속되거나 권장되는 경우 또는 일부 설정에서 제안되는 경우에도 유지됩니다.
http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s02s07.html
질문의 두 번째 부분은 다음과 같습니다.
에서 패턴을 검색하는 방법은 무엇입니까? 형태:
$ sudo aptitude search ?depends(lm-sensors)
bash: syntax error near unexpected token `('
내가 여기서 뭘 잘못하고 있는 걸까?