
我想取得用戶在 Ubuntu 上安裝的應用程式清單。已安裝的軟體包可以透過以下方式列出
dpkg --get-selections | grep -v deinstall
我找不到如何僅獲取應用程式並且也由用戶安裝(不是預設)。
xfce4-appfinder正是我想要的,但它是基於 GUI 的。
答案1
如果你已經aptitude
安裝了,那麼:
aptitude search '~i !~M !~E'
應該這樣做。
~i
對於已安裝的
!~M
對於不 ( !
) 自動安裝(即依賴項)
!~E
對於非 ( !
) 必需的系統軟體包