제안 / 권장 패키지를 설치 하시겠습니까?


38

다음 코드를 실행 하고이 패키지에 이러한 패키지가 필요하다는 것을 알았습니다. 이제 패키지가 제안되어 있으며 권장됩니다. 설치하는 방법은 무엇입니까?

myusuf3@purple:/etc$ sudo apt-get install virtualbox-4.0 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  acroread ia32-libs lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32v4l-0 lib32z1 libaudio2
  libc6-i386 libcurl3 libflac8 libhal1 liblcms1 libmng1 libogg0 libpulse0 libqt4-dbus libqt4-network libqt4-opengl
  libqt4-xml libqtcore4 libqtgui4 libsdl-ttf2.0-0 libsdl1.2debian libsdl1.2debian-alsa libsndfile1 libv4l-0
  libvorbis0a libvorbisenc2 libx11-xcb1 nspluginwrapper
Suggested packages:
  libldap2 libgnome-speech7 lib32asound2-plugins nas liblcms-utils pulseaudio qt4-qtconfig
Recommended packages:
  pdf-viewer
The following NEW packages will be installed:
  acroread ia32-libs lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32v4l-0 lib32z1 libaudio2
  libc6-i386 libcurl3 libflac8 libhal1 liblcms1 libmng1 libogg0 libpulse0 libqt4-dbus libqt4-network libqt4-opengl
  libqt4-xml libqtcore4 libqtgui4 libsdl-ttf2.0-0 libsdl1.2debian libsdl1.2debian-alsa libsndfile1 libv4l-0
  libvorbis0a libvorbisenc2 libx11-xcb1 nspluginwrapper virtualbox-4.0
0 upgraded, 34 newly installed, 0 to remove and 26 not upgraded.
Need to get 168MB of archives.
After this operation, 460MB of additional disk space will be used.

감사합니다

답변:


38

권장 사항은 기본적으로 설치됩니다 (Lucid 이후). 특정 패키지에 대해이를 무시하려면을 사용하십시오 apt-get --no-install-recommends install pkg. 그러나 제안은 아닙니다. 을 사용하여 단일 패키지 설치를위한 제안을 설치할 수 있습니다 apt-get -o APT::Install-Suggests="true" install pkg.

제안없이 conky 설치 :

laney@iota> sudo apt-get install conky
[...]
Suggested packages:
  apcupsd moc mpd
The following NEW packages will be installed
  conky conky-all

… 또는 제안합니다 :

laney@iota> sudo apt-get -o APT::Install-Suggests="true" install conky
[...]
The following NEW packages will be installed
  apache2 apache2-doc apache2-mpm-worker apache2-suexec apache2-utils apache2.2-bin apache2.2-common apcupsd apcupsd-cgi apcupsd-doc ario ario-common conky
  conky-all icecast2 ices2 libao-common libao4 libaprutil1-dbd-sqlite3 libaprutil1-ldap libcue1 libmpdclient2 libresid-builder0c2a libsidplay2 libsidutils0
  moc moc-ffmpeg-plugin mpd

이것을 넣어서 이것을 기본 동작으로 만들 수 있습니다

APT::Install-Suggests "true"

에있는 파일에서 /etc/apt/apt.conf.d/예를 들어, /etc/apt/apt.conf.d/30install-suggests.


4
--install-suggests옵션으로 제안 된 패키지를 설치할 수도 있습니다. 예sudo apt install --install-suggests conky
Dennis

24

위해 제안 패키지 , 간단히 사용할 수있는 --install-suggests플래그를 :

제안 된 패키지를 설치에 대한 종속성으로 고려하십시오.
구성 항목 : APT :: Install-Suggests.

[당신처럼 ] 옵션을 전달하는 대신-o APT::Install-Suggests="true"
--install-recommends

예:

sudo apt-get --install-suggests install mercurial

흥미로운 솔루션이지만 Maverick에서는 --install-suggests를 사용할 수 없습니다. 이 기능은 언제 apt-get에 추가 되었습니까?
MestreLion

3
그 명령이 재귀 적이 지 않습니까? 따라서 모든 제안 된 패키지 등의 제안 된 패키지 등도 설치합니다. 필자는이 경로에서 발생할 수있는 재귀로 인해 몇 MB의 초기 설치가 1GB 이상의 설치가 된 타사 예제를 보았습니다.
Phill Healey

1
@PhillHealey 당신이 맞아요, 큰 문제입니다.>.>
각도가

@PhillHealey 이것이 실제 설치 전에 확인을받는 이유입니다…
Franklin Yu

1
@PhillHealey 예, 그것이 사용을 피할 수있는 곳 --install-suggests이므로 대화식 설치에서만 좋습니다. (그리고 나는 왜 누군가가 자동화 된 스크립트모든 제안 된 소프트웨어를 필요로하는지 궁금해한다 … 내가 이해하는 한, 제안 된 소프트웨어는 "이 아이템을 구입 한 고객들도 구입했다"와 같다. 기능은 목록을 보지 않아도됩니다.)
Franklin Yu

10

--install-recommends명령에 옵션 을 추가하십시오 .

sudo apt-get --install-recommends install virtualbox-4.0 

당신이 사용하는 경우 --install-suggests메이크업을 반드시 설치됩니다 프로그램 목록을 검사 - 때때로 당신은 당신의 시스템에 넣어 프로그램이 꽤 목록을 (시도 --install-suggests와 함께 TuxGuitar)
찰스 그린

2
그 명령이 재귀 적이 지 않습니까? 따라서 모든 제안 된 패키지 등의 제안 된 패키지 등도 설치합니다. 필자는이 경로에서 발생할 수있는 재귀로 인해 몇 MB의 초기 설치가 1GB 이상의 설치가 된 타사 예제를 보았습니다.
Phill Healey
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.