※ 引述《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