2015-06-22 57 views
-2

我去debian安裝了imagick PECL擴展。我錯誤地安裝了ImageMagick與75 MB不必要的依賴關係。可能有人請幫助我,告訴我最簡單的方法來消除這一切,並返回75 MB錯誤地在Debian上安裝ImageMagick - 如何刪除它?

<code>apt-get install imagemagick 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
The following extra packages will be installed: 
    fontconfig fonts-droid ghostscript gsfonts hicolor-icon-theme 
    imagemagick-common libavahi-client3 libcairo2 libcups2 libcupsimage2 
    libdatrie1 libdjvulibre-text libdjvulibre21 libexiv2-12 libgdk-pixbuf2.0-0 
    libgdk-pixbuf2.0-common libgs9 libgs9-common libice6 libijs-0.35 libilmbase6 
    libjasper1 libjbig0 libjbig2dec0 liblcms1 liblcms2-2 liblensfun-data 
    liblensfun0 liblqr-1-0 libmagickcore5 libmagickcore5-extra libmagickwand5 
    libnetpbm10 libopenexr6 libpango1.0-0 libpaper-utils libpaper1 libpixman-1-0 
    librsvg2-2 librsvg2-common libsm6 libthai-data libthai0 libtiff4 libwmf0.2-7 
    libxcb-render0 libxcb-shm0 libxft2 libxrender1 libxt6 netpbm poppler-data 
    ufraw-batch x11-common 
Suggested packages: 
    ghostscript-cups ghostscript-x hpijs imagemagick-doc autotrace cups-bsd lpr 
    lprng enscript ffmpeg gimp gnuplot grads hp2xx html2ps libwmf-bin mplayer 
    povray radiance sane-utils texlive-base-bin transfig xdg-utils cups-common 
    exiv2 libjasper-runtime liblcms-utils liblcms2-utils ttf-baekmuk 
    ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp 
    ttf-arphic-bkai00mp librsvg2-bin poppler-utils fonts-japanese-mincho 
    fonts-ipafont-mincho fonts-japanese-gothic fonts-ipafont-gothic 
    fonts-arphic-ukai fonts-arphic-uming fonts-unfonts-core ufraw 
The following NEW packages will be installed: 
    fontconfig fonts-droid ghostscript gsfonts hicolor-icon-theme imagemagick 
    imagemagick-common libavahi-client3 libcairo2 libcups2 libcupsimage2 
    libdatrie1 libdjvulibre-text libdjvulibre21 libexiv2-12 libgdk-pixbuf2.0-0 
    libgdk-pixbuf2.0-common libgs9 libgs9-common libice6 libijs-0.35 libilmbase6 
    libjasper1 libjbig0 libjbig2dec0 liblcms1 liblcms2-2 liblensfun-data 
    liblensfun0 liblqr-1-0 libmagickcore5 libmagickcore5-extra libmagickwand5 
    libnetpbm10 libopenexr6 libpango1.0-0 libpaper-utils libpaper1 libpixman-1-0 
    librsvg2-2 librsvg2-common libsm6 libthai-data libthai0 libtiff4 libwmf0.2-7 
    libxcb-render0 libxcb-shm0 libxft2 libxrender1 libxt6 netpbm poppler-data 
    ufraw-batch x11-common 
0 upgraded, 55 newly installed, 0 to remove and 0 not upgraded. 
Need to get 25.7 MB of archives. 
After this operation, 75.6 MB of additional disk space will be used. 
Do you want to continue [Y/n]?</code> 
+0

ImageMagick/GraphicsMagick只是一大堆程序。只要保留它。無論如何,你安裝的下一個程序將依賴於它。 – kay

回答

0
  1. 運行dpkg -L imagemagick並記下了這個包的文件。

  2. 運行apt-get remove imagemagick刪除包。

  3. 再次運行dpkg -L imagemagick以查看文件是否仍然存在。

+0

如果我運行'apt-get remove imagemagick',它只會刪除imagemagic:「在此操作之後,將釋放429 kB磁盤空間。」 – user2603125

-2

那麼,我做了apt-get remove包的包裝。

0
apt-get remove imagemagick-common 

它在apt-get remove imagemagick之後爲我移除95 MB。

0

只刪除一個包,你這樣做:

apt-get remove <package-name> 

但是,如果你想消滅了,那麼你就這樣做:

apt-get purge <package-name> 

現在,當被安裝了一個包,因爲你安裝另一個,這是一個依賴,所以你不想刪除它。