本文屬於實用性質,且屬於摘抄別處,出自:Ubuntu 下如何查看已安裝的軟件
1.查看安裝的所有軟件
【查看已安裝的軟體列表】 root@Ubuntu# dpkg -l Eg:dpkg -l | grep ftp 【查看已安裝的軟體列表】 root@Ubuntu# dpkg --get-selections | grep -v deinstall -v grep標記"反轉"返回 不匹配行 【查看尚未安裝的軟體列表】 root@Ubuntu# dpkg --get-selections | grep -v install 【查看已安裝的軟體列表】 root@Ubuntu# apt list --installed | grep ssh 支持Ubuntu14.0.4及以后版本
2.查看軟件安裝的路徑
dpkg -L softname #方法1: 顯示安裝路徑 dpkg -S softwarename #方法2: 顯示包含此軟件包的所有位置 find/whereis softname #方法3:顯示軟體執行程序/動態鏈接庫的路徑 aptitude show softearename # 需要額外安裝 aptitude 軟體 [Ubuntu軟件的安裝與查看 詳見博文:http://www.cnblogs.com/forward/archive/2012/01/10/2318483.html]
[dpkg -L chromium-browser | grep chromium-borwser]
3.查看軟件版本
aptitude show Eg:aptitude show ftp
4.查看軟體是否運行(ps:查看進程)
ps -A | grep 軟體名
5.補充【查看庫文件】
dpkg -L softname #方法1: 顯示安裝路徑 dpkg -S softwarename #方法2: 顯示包含此軟件包的所有位置 find/whereis softname #方法3:顯示軟體執行程序/動態鏈接庫的路徑 aptitude show softearename # [Ubuntu軟件的安裝與查看 詳見博文:http://www.cnblogs.com/forward/archive/2012/01/10/2318483.html]
6.參考文獻