Re: [問題] 安裝軟體在不同的硬碟?

看板Linux作者時間17年前 (2008/08/17 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《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?塜 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
文章代碼(AID): #18fnNU00 (Linux)
文章代碼(AID): #18fnNU00 (Linux)