論壇


當您按下「送出」時,即表示您已經閱讀並同意 Ubuntu 行為規範Ubuntu@Taiwan 論壇規範
建議先使用本站右上方的搜尋系統搜尋文章後,再提出問題:您可以使用如錯誤訊息或是電腦(組件)型號當作關鍵字搜尋

標題: *
姓名: *
圖標:
選擇編輯器
內容: *
附加選項:使用HTML標籤
使用表情圖
啟用Xoops內置碼
啟用換行符(如果啟用HTML標籤,建議關閉)
輸入驗證碼
(大寫數字請輸入相對應的印度/阿拉伯數字) *
     
     
* = 必要的
Re: apt 如何列出已安裝的套件列表

作者 雪龍 2006/9/1 13:32:10


匿名 寫到:
我是用 ~$ dpkg -l

不過,你說用 apt-cache search 找 *可安裝的套件*,似乎有點不太正確...


是否應該說在可用的套件清單中用關鍵字作搜尋
Re: apt 如何列出已安裝的套件列表

作者 gage 2006/8/26 23:55:55

dpkg --get-selections
這不知道算不算是你想要的答案!

來源:http://linuxtoy.org/archives/reinstallation_software_tip.html
Re: apt 如何列出已安裝的套件列表

作者 訪客 2006/8/25 13:37:42

我是用 ~$ dpkg -l

不過,你說用 apt-cache search 找 *可安裝的套件*,似乎有點不太正確...

因為 man 說:


apt-cache search regex [ regex ... ]
search performs a full text search on all available package
lists for the regex pattern given. It searches the package names
and the descriptions for an occurrence of the regular expression
and prints out the package name and the short description. If
--full is given then output identical to show is produced for
each matched package, and if --names-only is given then the long
description is not searched, only the package name is.

Separate arguments can be used to specify multiple search pat‐
terns that are and’ed together.

apt 如何列出已安裝的套件列表

作者 雪龍 2006/8/25 9:48:40

用 apt-cache search 關鍵字 可以查詢可安裝的套件

若是想列出已安裝套件的列表需要用什麼指令呢?