論壇

網站公告

社群伺服器正進行搬移作業中,部份已完成;目前仍缺硬體資源,請參考討論區站務公告及主機近況公告。若有不便之處敬請見諒。

正在瀏覽:   1 名遊客





#1 apt 如何列出已安裝的套件列表
雪龍 2006/8/25 9:48
用 apt-cache search 關鍵字 可以查詢可安裝的套件

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


#2 Re: apt 如何列出已安裝的套件列表
訪客 Ident: 3d5bd f107d e596c e77e8 2006/8/25 13:37
我是用 ~$ 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.


#3 Re: apt 如何列出已安裝的套件列表
gage 2006/8/26 23:55
dpkg --get-selections
這不知道算不算是你想要的答案!

來源:http://linuxtoy.org/archives/reinstallation_software_tip.html


#4 Re: apt 如何列出已安裝的套件列表
雪龍 2006/9/1 13:32

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

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


是否應該說在可用的套件清單中用關鍵字作搜尋




回覆 發帖



發表回覆
賬號用戶名   密碼   登錄
*
輸入驗證碼
(大寫數字請輸入相對應的印度/阿拉伯數字) *
     
* = 必要的


可以查看帖子.
可以發帖.
可以回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
可以不經審核直接發帖.