r-base-core 설치 시 과도한 종속성 우회

r-base-core 설치 시 과도한 종속성 우회

우분투 10.10 서버에 R(r-base-core를 통해)을 설치하려고 합니다.

다음을 모두 설치하려고 합니다.

The following NEW packages will be installed:
  apt-xapian-index apturl apturl-common aspell aspell-en dbus-x11 dictionaries-common docbook-xml dosfstools dpatch firefox firefox-branding fuse-utils gamin gconf2 gconf2-common ghostscript gir1.0-glib-2.0 gksu
  gnome-icon-theme gnome-keyring gnome-mime-data gvfs gvfs-backends hdparm hunspell-en-us indicator-application iso-codes launchpad-integration libappindicator1 libart-2.0-2 libaspell15 libatasmart4
  libavahi-glib1 libbluetooth3 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libbz2-dev libcairo-perl libcanberra0 libcdio-cdda0 libcdio-paranoia0 libcdio10 libcupsimage2 libdbusmenu-glib1
  libdbusmenu-gtk1 libenchant1c2a libept1 libexif12 libffi5 libfuse2 libgail18 libgamin0 libgconf2-4 libgcr0 libgdu0 libgirepository1.0-1 libgksu2-0 libglade2-0 libglib-perl libgnome-keyring0 libgnome2-0
  libgnome2-canvas-perl libgnome2-common libgnome2-perl libgnome2-vfs-perl libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgp11-0
  libgphoto2-2 libgphoto2-port0 libgs8 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libgtk2-perl libgtop2-7 libgtop2-common libgudev-1.0-0 libgvfscommon0 libhunspell-1.2-0 libidl0 libimobiledevice1
  libindicator1 libjson-glib-1.0-0 liblaunchpad-integration1 liblcms1 liblqr-1-0 libmagickcore3 libmagickwand3 libncurses5-dev libnspr4-0d libnss3-1d libntfs-3g79 libntfs10 libopenobex1 liborbit2
  libpam-gnome-keyring libpango-perl libpaper-utils libpaper1 libparted0debian1 libpcre3-dev libpcrecpp0 libplist1 libpolkit-agent-1-0 libpolkit-backend-1-0 libproxy0 librarian0 libreadline-dev libreadline6-dev
  librsvg2-2 librsvg2-common libsgutils2-2 libsmbclient libsoup-gnome2.4-1 libsoup2.4-1 libstartup-notification0 libtdb1 libusbmuxd1 libutempter0 libvorbisfile3 libvte-common libvte9 libwbclient0 libwebkit-1.0-2
  libwebkit-1.0-common libxapian15 libxaw7 libxcb-atom1 libxcb-aux0 libxcb-event1 libxmu6 libxmuu1 libxpm4 libxss1 libxv1 libxxf86dga1 mtools ntfs-3g ntfsprogs obex-data-server patchutils policykit-1
  policykit-1-gnome powermgmt-base psmisc python-apt python-cairo python-dbus python-debian python-glade2 python-gnupginterface python-gobject python-gobject-cairo python-gtk2 python-software-properties
  python-vte python-webkit python-xapian r-base-core r-base-dev r-cran-boot r-cran-class r-cran-cluster r-cran-codetools r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mass r-cran-matrix r-cran-mgcv
  r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-doc-html r-recommended rarian-compat sgml-data software-properties-gtk synaptic tcl8.5 tk8.5 ubufox udisks unattended-upgrades unzip
  usbmuxd x11-utils x11-xserver-utils xauth xbitmaps xdg-utils xterm xul-ext-ubufox zip
0 upgraded, 204 newly installed, 0 to remove and 0 not upgraded.
Need to get 94.5MB of archives.
After this operation, 284MB of additional disk space will be used.

내 인프라에는 공간이 제한되어 있으므로 서버에서 절대 사용할 수 없는 프로그램/라이브러리(libgnome? firefox??)를 설치하는 데 너무 많은 공간을 낭비하고 싶지 않습니다.

  1. 왜 우리는 이러한 모든 종속성을 갖고 있습니까? 전체 종속성 트리나 각각의 동기를 쉽게 확인할 수 있는 방법이 있습니까?
  2. 나는 윈도우 종속성에 대해 정말로 신경 쓰지 않습니다 (사용할 수 없기 때문입니다). apt/dpkg가 이를 무시하도록 하는 좋은 방법이 있습니까? 아니면 소스에서 컴파일하는 것이 바람직합니까?

답변1

(2) 시도해 보세요

sudo apt-get --no-install-recommends install r-base-core

우분투는 기본적으로 다음 뿐만 아니라의존한다, 뿐만 아니라추천패키지.

(1) 패키지 해결 트리에 관심이 있다면 다음과 같이 하십시오.

apt-get --dry-run -o Debug::pkgDepCache::AutoInstall=yes install r-base-core

샘플 출력

$ apt-get --dry-run -o Debug::pkgDepCache::AutoInstall=yes install r-base-core
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
  Installing libblas3gf as Depends of r-base-core
    Installing libgfortran3 as Depends of libblas3gf
  Installing liblapack3gf as Depends of r-base-core
  Installing tcl8.5 as Depends of r-base-core
  Installing tk8.5 as Depends of r-base-core
  Installing r-recommended as Recommends of r-base-core
    Installing r-cran-boot as Depends of r-recommended
    Installing r-cran-cluster as Depends of r-recommended
    Installing r-cran-foreign as Depends of r-recommended
    Installing r-cran-kernsmooth as Depends of r-recommended
      Installing r-cran-mass as Depends of r-cran-kernsmooth
    # etc...

관련 정보