原始碼
出自TWEmu.no-ip.org
APT
的原始碼
跳轉到:
導航
,
搜尋
根據以下的原因,您並無權限去做以下的動作:
您剛才的請求只有user使用者組的使用者才能使用。
你可以檢視並複製本頁面的原始碼。
[[圖片:Screenshot-aptitude.png|thumb|320px]] {{指令}} Powered by Moooo.... =設定= 簡單使用 ==Debian== /etc/apt/sources.list <pre> # deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official Multi-architecture i386/amd64/powerpc NETINST #1 20070407-13:10]/ etch contrib main # 官方環境 # deb http://ftp.tw.debian.org/debian/ etch main non-free contrib # deb-src http://ftp.tw.debian.org/debian/ etch main non-free contrib # deb http://security.debian.org/ etch/updates main non-free contrib # deb-src http://security.debian.org/ etch/updates main non-free contrib deb http://ftp.tw.debian.org/debian/ lenny main non-free contrib deb-src http://ftp.tw.debian.org/debian/ lenny main non-free contrib deb http://security.debian.org/ lenny/updates main non-free contrib deb-src http://security.debian.org/ lenny/updates main non-free contrib deb http://ftp.tw.debian.org/debian/ testing main non-free contrib deb-src http://ftp.tw.debian.org/debian/ testing main non-free con deb http://ftp.tw.debian.org/debian/ unstable main non-free contrib deb-src http://ftp.tw.debian.org/debian/ unstable main non-free contrib # Backports # deb http://www.backports.org/debian etch-backports main contrib non-free # deb-src http://www.backports.org/debian etch-backports main contrib non-free # Virtual box # deb http://www.virtualbox.org/debian etch non-free deb http://www.virtualbox.org/debian lenny non-free # Compiz (no longer maintain) # deb http://download.tuxfamily.org/shames/debian-sid/desktopfx/unstable/ ./ # wxWidgets/wxPython repository at apt.wxwidgets.org # deb http://apt.wxwidgets.org/ etch-wx main # deb-src http://apt.wxwidgets.org/ etch-wx main deb http://apt.wxwidgets.org/ lenny-wx main deb-src http://apt.wxwidgets.org/ lenny-wx main # X.264 and Acrobat Reader ... # deb http://www.debian-multimedia.org testing main deb http://www.debian-multimedia.org lenny main # Debian Kernels deb http://kernel-archive.buildserver.net/debian-kernel trunk main # OFSET Debian repository deb http://debian.ofset.org lenny main deb-src http://debian.ofset.org lenny main </pre> ===Source Repostory=== *[http://www.eng.uwaterloo.ca/~sruggier/files/apt/ StepMania] ==Fedora== [http://apt.nc.hcc.edu.tw/web/apt/apt.html 新竹縣網 APT 伺服器 - APT 的安裝、使用] ==Proxy== 在 /etc/apt/apt.conf 最後方加入 <pre> Acquire::Http::Proxy "http://proxy.example:3128"; </pre> =使用= {| |+危險度 (red = 危險, green = 一般) !command !! 用途 |- style='background:green' |apt-get update ||更新套件庫列表 |- style='background:green' |apt-get source <套件名稱> ||下載套件至工作目錄下 |- style='background:red' |apt-get check||檢查軟體相依性 |- style='background:red' |apt-get upgrade||升級軟體 |- style='background:red' |apt-get install <套件名稱>||安裝軟體 |- style='background:red' |apt-get build-dep <套件名稱>||安裝編譯套件 |- style='background:red' |apt-get dist-upgrade||整體系統升級 (建議進純文字模式 ttyX, 關桌面) |- style='background:red' |apt-get remove <套件名稱>||移除軟體 |- style='background:red' |apt-get purge <套件名稱>||移除軟體且含設定檔 |- style='background:red' |apt-get autoremove ||清除殘留不用的軟體 |- style='background:red' |apt-get auto-clean ||清除下載的套件 |- style='background:green' |apt-cache search <關鍵字>||搜尋軟體 |- style='background:green' |apt-cache showpkg <套件名稱> ||顯示該套件的資料 |- style='background:green' |apt-file update ||更新搜尋檔案資訊 |- style='background:green' |apt-file search ||搜尋檔案所位於的套件 |- style='background:green' |apt-cdrom add /media/cdrom ||把光碟片掛載到套件庫 |- style='background:red' |apt-key add <檔案> ||把該檔案加入套件庫信任金鑰 |- style='background:red' |apt-key del <金鑰序號> ||把該金鑰移出套件庫信任金鑰 |- style='background:green' |apt-key list ||顯示所信任的金鑰 |- style='background:red' |aptitude ||純文字的套件管理軟體 (支援中文) 同 synaptic |} =特殊= 參考自[http://forums.debian.net/viewtopic.php?f=10&t=240] <pre> 鎖定 echo 'packagename hold'|dpkg --set-selections 解鎖 echo 'packagename install'|dpkg --set-selecions </pre> rkhunter 自動偵測更新 /etc/apt/apt.conf.d/90rkhunter <pre> // Makes sure that rkhunter file properties database is updated after each remove or install only if hashes test is enabled DPkg::Post-Invoke { "if [ -x /usr/bin/rkhunter ] && ( ! grep -q -E '^DISABLE_TESTS=.*(hashes.*attributes|attributes.*hashes|properties)' /etc/rkhunter.conf || grep -q -E '^ENABLE_TESTS=.*(hashes|attributes|properties)' /etc/rkhunter.conf); then /usr/bin/rkhunter --propupd --nolog; fi" } </pre> [[Category:Debian|{{PAGENAME}}]][[Category:CUI|{{PAGENAME}}]]
在這個頁面上使用的模板有:
模板:指令
返回到
APT
。
檢視
頁面
討論
原始碼
歷史
個人工具
登入/建立新帳號
導航
首頁
近期變動
全部頁面
所有分類
隨機頁面
使用說明
搜尋
工具箱
鏈入頁面
相關頁面修訂記錄
上傳檔案
特殊頁面