如何确定我的ubuntu上是否安装了某软件?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
zsdz
帖子: 19
注册时间: 2009-04-28 16:49

如何确定我的ubuntu上是否安装了某软件?

#1

帖子 zsdz » 2009-05-13 9:51

比如是否安装了用于opengl的glut软件库?

要是有了我就不装了
头像
小普林斯
帖子: 707
注册时间: 2009-04-14 13:18

Re: 如何确定我的ubuntu上是否安装了某软件?

#2

帖子 小普林斯 » 2009-05-13 10:26

sudo dpkg -l |grep glut
头像
小普林斯
帖子: 707
注册时间: 2009-04-14 13:18

Re: 如何确定我的ubuntu上是否安装了某软件?

#3

帖子 小普林斯 » 2009-05-13 10:26

其实没有必要先查询,你直接安装就行,如果安装过了就会提示你已经装好的
头像
windwhinny
帖子: 618
注册时间: 2007-09-26 17:34

Re: 如何确定我的ubuntu上是否安装了某软件?

#4

帖子 windwhinny » 2009-05-13 10:34

新立得软件包管理器~
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 如何确定我的ubuntu上是否安装了某软件?

#5

帖子 kelen » 2009-05-13 18:01

可以用

代码: 全选

dpkg -l "xxx"
来查看, 如下, 我想知道包名带有firefox字样的安装情况, 前面带有ii字样的, 则是已安装的.

代码: 全选

iBeginner@ubuntu: >>> dpkg -l "firefox*"                            ~/Work/
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  firefox        3.0.10+nobinon meta package for the popular mozilla web bro
un  firefox-2      <none>         (no description available)
ii  firefox-3.0    3.0.10+nobinon safe and easy web browser from Mozilla
ii  firefox-3.0-gn 3.0.10+nobinon Support for Gnome in Mozilla Firefox
ii  firefox-gnome- 3.0.10+nobinon meta package pointing to the latest gnome
un  firefox-granpa <none>         (no description available)
un  firefox-granpa <none>         (no description available)
un  firefox-libtha <none>         (no description available)
un  firefox-trunk  <none>         (no description available)
un  firefox-trunk- <none>         (no description available)
In a world without walls who needs Windows?
zsdz
帖子: 19
注册时间: 2009-04-28 16:49

Re: 如何确定我的ubuntu上是否安装了某软件?

#6

帖子 zsdz » 2009-05-14 14:31

多谢大家!
tanjian58
帖子: 4
注册时间: 2009-05-02 12:54

Re: 如何确定我的ubuntu上是否安装了某软件?

#7

帖子 tanjian58 » 2009-05-14 20:08

新立得下按Ctrl+F 输入你要查找的 安装的话会显示
回复