Hung-Yi Chen’s Blog

利用 apt-file 來搜尋檔案/套件名稱

with one comment

最近因為某些需求,開始回頭用 Ubuntu/Debian

最近有人問我,有沒有辦法找出某個已安裝的套件名稱,或者找出某個檔案屬於哪個套件

前者可以用 dpkg 或 dlocate -S 來達到目的

不過後者我當時回答不上來

找了一下資料,apt-file 似乎是個不錯的 tool

安裝 apt-file
sudo apt-get install apt-file
更新 apt-file 的資料
sudo apt-file update
利用 apt-file 找出套件
sudo apt-file search gcc-3.4

還有許多有趣的玩法及組合,就慢慢參考 man manual 吧:p

Written by gaod

四月 4th, 2007 at 6:29 上午

喜?憂?

without comments

昨晚奮鬥很久,終於重新把這個 blog 再度弄起來。這個 blog 一直都是多災多難,歷經 database 損毀、硬碟損毀等奇怪原因,前前後後倒站過三次,最近想寫些東西,但是又不想寫在 bbs 上面,所以昨晚一鼓作氣把東西弄好了…。心得晚點再寫:p

Written by gaod

四月 4th, 2007 at 6:22 上午

Posted in Sundries