Ubuntu找尋某個檔案屬於哪個套件

在手動編譯套件時常常會遇到找不到相關的函式庫檔案,那就使用apt-file這個套件來幫忙囉!

安裝

#sudo apt-get install apt-file

更新

#sudo apt-file update

由檔名搜尋套件

#sudo apt-file search libtdsodbc

實際操作

jerry@jerry-virtual-machine:~$ apt-file search libtdsodbc.so
tdsodbc: /usr/lib/odbc/libtdsodbc.so

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s