兩個好用的apt工具先安裝,善用下面這些指令,什麼開發工具幾乎都可以用apt-get install搞定,省很多時間,但是如果要做最佳化編譯,或是嵌入式開發,還是得自己慢慢編比較實在。
apt-file可尋找某檔案是在某套件中
安裝apt-file
sudo apt-get install apt-file
更新cache
sudo apt-file update
sudo apt-file find ...
or sudo apt-file search ...
套件查詢工具apt-cache
apt-cache search
# 從套件資訊中查詢包含 keyword 的套件
apt-cache -n search
# 搜尋 keyword 的套件名稱
apt-cache show
# 顯示套件詳細資訊和介紹
apt-cache showsrc
# 顯示套件原始碼相關資訊
apt-cache showpkg
# 顯示套件相依性相關資訊
apt-cache depends
# 顯示套件相依性相關資訊
apt-cache rdepends
# 顯示套件反向相依性相關資訊
apt-cache stat
# 顯示套件庫資訊
PS. apt-get使用可參考: http://blog.longwin.com.tw/2005/05/use_apt/
fftw這是第2版,第3版有neon優化,但是網路上有些程式是用第2版做的...從第2版升級到第3版沒看到正式文件,感覺有點麻煩,因此就裝一裝,幸好是兩版的名稱有直接差異,第三版之後的名稱都用fftw3作區別
bevis@ubuntu:~/Desktop/tstm$ sudo apt-get install fftw-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
fftw2
Suggested packages:
mpi-defaults-bin
The following NEW packages will be installed:
fftw-dev fftw2
0 upgraded, 2 newly installed, 0 to remove and 250 not upgraded.
Need to get 278 kB/514 kB of archives.
After this operation, 1,571 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe fftw-dev amd64 2.1.5-1 [278 kB]
Fetched 278 kB in 2s (112 kB/s)
Selecting previously unselected package fftw2.
(Reading database ... 149178 files and directories currently installed.)
Unpacking fftw2 (from .../fftw2_2.1.5-1_amd64.deb) ...
Selecting previously unselected package fftw-dev.
Unpacking fftw-dev (from .../fftw-dev_2.1.5-1_amd64.deb) ...
Setting up fftw2 (2.1.5-1) ...
Setting up fftw-dev (2.1.5-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
bevis@ubuntu:~/Desktop/tstm$ sudo apt-get install libmagick++-dev
HDR影像格式支援用這個
libnetpbm9-dev - Development libraries and header files (v9)
apt-file可尋找某檔案是在某套件中
安裝apt-file
sudo apt-get install apt-file
更新cache
sudo apt-file update
sudo apt-file find ...
or sudo apt-file search ...
套件查詢工具apt-cache
apt-cache search
# 從套件資訊中查詢包含 keyword 的套件
apt-cache -n search
# 搜尋 keyword 的套件名稱
apt-cache show
# 顯示套件詳細資訊和介紹
apt-cache showsrc
# 顯示套件原始碼相關資訊
apt-cache showpkg
# 顯示套件相依性相關資訊
apt-cache depends
# 顯示套件相依性相關資訊
apt-cache rdepends
# 顯示套件反向相依性相關資訊
apt-cache stat
# 顯示套件庫資訊
PS. apt-get使用可參考: http://blog.longwin.com.tw/2005/05/use_apt/
fftw這是第2版,第3版有neon優化,但是網路上有些程式是用第2版做的...從第2版升級到第3版沒看到正式文件,感覺有點麻煩,因此就裝一裝,幸好是兩版的名稱有直接差異,第三版之後的名稱都用fftw3作區別
bevis@ubuntu:~/Desktop/tstm$ sudo apt-get install fftw-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
fftw2
Suggested packages:
mpi-defaults-bin
The following NEW packages will be installed:
fftw-dev fftw2
0 upgraded, 2 newly installed, 0 to remove and 250 not upgraded.
Need to get 278 kB/514 kB of archives.
After this operation, 1,571 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe fftw-dev amd64 2.1.5-1 [278 kB]
Fetched 278 kB in 2s (112 kB/s)
Selecting previously unselected package fftw2.
(Reading database ... 149178 files and directories currently installed.)
Unpacking fftw2 (from .../fftw2_2.1.5-1_amd64.deb) ...
Selecting previously unselected package fftw-dev.
Unpacking fftw-dev (from .../fftw-dev_2.1.5-1_amd64.deb) ...
Setting up fftw2 (2.1.5-1) ...
Setting up fftw-dev (2.1.5-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
bevis@ubuntu:~/Desktop/tstm$ sudo apt-get install libmagick++-dev
HDR影像格式支援用這個
libnetpbm9-dev - Development libraries and header files (v9)