回文章列表
作者Cheung.bbs@bbs.sayya.org (於是萬蛇這樣掛掉了) 看板: linux
標題Re: [問題] 安裝軟體在不同的硬碟?
時間SayYA 資訊站 (2008/08/16 Sat 23:40:07)
※ 引述《suss.bbs@ptt.cc》之銘言:
> 請問
> 如果系統在硬碟C 但是C已經將近滿了
> (只剩25xmb free only)
> 可以把軟體安裝在另外的硬碟嗎?
> 我試著man agp-get 但好像沒有提供安裝位置的選項
> 麻煩各位幫忙 謝謝^^

$ man dpkg
       --root=dir | --admindir=dir | --instdir=dir
              Change   default   directories.   admindir   defaults   to
              /var/lib/dpkg and contains many files that  give  informa??
              tion  about  status  of installed or uninstalled packages,
              etc. instdir defaults to / and  refers  to  the  directory
              where  packages  are  to be installed. instdir is also the
              directory passed to  chroot(2)  before  running  package?�s
              installation  scripts,  which  means  that the scripts see
              instdir as a root directory.  Changing root changes  inst??
              dir to dir and admindir to dir/var/lib/dpkg.

$ dpkg  --help

Options:
  --admindir=<directory>     Use <directory> instead of /var/lib/dpkg.
  --root=<directory>         Install on a different root directory.
  --instdir=<directory>      Change installation dir without changing admin dir.

apt-get 預設都是裝在 / 下,/usr/local 不歸 apt 管理

系統已經沒多餘空間 還是建議重新規劃比較好


--
        (__)    歡迎加入 GNU Debian Linux
        (oo)    msn:cheung@debian.nccu.edu.tw
  /------\/
 / |    ||
*  /\---/\      ...."Have you mooed today?"...
   ~~   ~~
--
※ Origin: SayYA 資訊站 <bbs.sayya.org> 
◆ From: 220-132-173-42.hinet-ip.hinet.net
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻